FAISP/src/main/resources/templates/adminPage/authMgt/authEditModal.html

96 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="ko" xmlns:th="http://www.thymeleaf.org">
<input type="hidden" id="userSeq" th:value="${userInfo.userSeq}">
<div class="tab-pane fade p-2 show active" id="accessTabPanel" role="tabpanel" aria-labelledby="accessTab" tabindex="0">
<table class="table table-sm table-hover text-center" id="accessEditTable">
<thead>
<tr class="table-secondary">
<th>대분류</th>
<th>중분류</th>
<th>소분류</th>
<th class="selectTh mouse-hover-clickable" data-type="access">해제</th>
<th:block th:each="code:${session.commonCode.get('ACC')}">
<th class="selectTh mouse-hover-clickable" data-type="access" th:data-target="${code.itemCd}" th:text="${code.itemValue}"></th>
</th:block>
</tr>
</thead>
<tbody>
<tr th:each="accessConfig:${userInfo.accessConfigList}">
<input type="hidden" class="menuKey" th:value="${accessConfig.menuKey}">
<th:block th:each="commonCode:${session.commonCode.get('CAT1')}">
<th:block th:if="${commonCode.itemCd eq accessConfig.cat1Cd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block>
<th:block th:each="commonCode:${session.commonCode.get('CAT2')}">
<th:block th:if="${commonCode.itemCd eq accessConfig.cat2Cd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block>
<th:block th:if="${#strings.isEmpty(accessConfig.cat3Cd)}">
<td></td>
</th:block>
<th:block th:unless="${#strings.isEmpty(accessConfig.cat3Cd)}" th:each="commonCode:${session.commonCode.get('CAT3')}">
<th:block th:if="${commonCode.itemCd eq accessConfig.cat3Cd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block>
<td class="radioTd">
<input type="radio" class="accessRadioEmpty" th:name="${#strings.concat('accessAuth',accessConfig.menuKey)}" value="">
</td>
<th:block th:each="code:${session.commonCode.get('ACC')}">
<td class="radioTd">
<input type="radio" th:class="${#strings.concat('accessRadio', code.itemCd)}" th:name="${#strings.concat('accessAuth',accessConfig.menuKey)}" th:value="${code.itemCd}" th:checked="${code.itemCd eq accessConfig.accessAuth}">
</td>
</th:block>
</tr>
</tbody>
</table>
</div>
<div class="tab-pane fade p-2" id="approvalTabPanel" role="tabpanel" aria-labelledby="approvalTab" tabindex="0">
<table class="table table-sm table-hover text-center" id="approvalEditTable">
<thead>
<tr class="table-secondary">
<th>대분류</th>
<th>중분류</th>
<th>소분류</th>
<th class="selectTh mouse-hover-clickable" data-type="approval">해제</th>
<th:block th:each="code:${session.commonCode.get('APC')}">
<th class="selectTh mouse-hover-clickable" data-type="approval" th:data-target="${code.itemCd}" th:text="${code.itemValue}"></th>
</th:block>
</tr>
</thead>
<tbody>
<tr th:each="approvalConfig:${userInfo.approvalConfigList}">
<input type="hidden" class="menuKey" th:value="${approvalConfig.menuKey}">
<th:block th:each="commonCode:${session.commonCode.get('CAT1')}">
<th:block th:if="${commonCode.itemCd eq approvalConfig.cat1Cd}">
<td th:text="${commonCode.itemValue}">.</td>
</th:block>
</th:block>
<th:block th:each="commonCode:${session.commonCode.get('CAT2')}">
<th:block th:if="${commonCode.itemCd eq approvalConfig.cat2Cd}">
<td th:text="${commonCode.itemValue}">.</td>
</th:block>
</th:block>
<th:block th:if="${#strings.isEmpty(approvalConfig.cat3Cd)}">
<td></td>
</th:block>
<th:block th:unless="${#strings.isEmpty(approvalConfig.cat3Cd)}" th:each="commonCode:${session.commonCode.get('CAT3')}">
<th:block th:if="${commonCode.itemCd eq approvalConfig.cat3Cd}">
<td th:text="${commonCode.itemValue}"></td>
</th:block>
</th:block>
<td class="radioTd">
<input type="radio" class="approvalRadioEmpty" th:name="${#strings.concat('approvalAuth',approvalConfig.menuKey)}" value="">
</td>
<th:block th:each="code:${session.commonCode.get('APC')}">
<td class="radioTd">
<input type="radio" th:class="${#strings.concat('approvalRadio', code.itemCd)}" th:name="${#strings.concat('approvalAuth',approvalConfig.menuKey)}" th:value="${code.itemCd}" th:checked="${code.itemCd eq approvalConfig.approvalAuth}">
</td>
</th:block>
</tr>
</tbody>
</table>
</div>
</html>