ui: simplify DDS default screens

This commit is contained in:
devmrko
2026-07-01 10:08:07 +09:00
parent 2a038662e0
commit 699909212f
4 changed files with 40 additions and 46 deletions

View File

@@ -8,7 +8,8 @@
<h1>역할</h1>
<details class="explanation-details">
<summary>도움말</summary>
<p>사용자에게 부여할 역할을 관리합니다. 표시 보호 등급 상한은 허용된 행에서 원문으로 볼 수 있는 컬럼 등급의 참고값이며, 행 접근 권한은 권한 규칙과 VPD에서 결정합니다.</p>
<p th:if="${backofficeTrack == 'DDS'}">역할은 사용자와 접근 태그 규칙을 연결하는 기준입니다. 실제 접근 범위는 접근 규칙에서 관리합니다.</p>
<p th:unless="${backofficeTrack == 'DDS'}">사용자에게 부여할 역할을 관리합니다. 표시 보호 등급 상한은 허용된 행에서 원문으로 볼 수 있는 컬럼 등급의 참고값이며, 행 접근 권한은 권한 규칙과 VPD에서 결정합니다.</p>
</details>
</div>
@@ -19,7 +20,8 @@
<h2>역할 추가</h2>
<form method="post" action="/roles" class="form-grid">
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}">
<label>
<input th:if="${backofficeTrack == 'DDS'}" type="hidden" name="maxSensitivityLevel" value="PUBLIC">
<label th:unless="${backofficeTrack == 'DDS'}">
역할명
<input class="form-control" name="roleName" placeholder="HR_DEPT_ROLE" required>
</label>
@@ -49,7 +51,7 @@
<tr>
<th>ID</th>
<th>역할명</th>
<th>표시 보호 등급 상한</th>
<th th:unless="${backofficeTrack == 'DDS'}">표시 보호 등급 상한</th>
<th>삭제 영향</th>
<th></th>
</tr>
@@ -60,7 +62,7 @@
hasDependencies=${impact != null && (!#lists.isEmpty(impact.directUsers()) || !#lists.isEmpty(impact.groups()) || impact.permissionCount() > 0)}">
<td th:text="${role.roleId()}">10</td>
<td th:text="${role.roleName()}">HR_DEPT_ROLE</td>
<td>
<td th:unless="${backofficeTrack == 'DDS'}">
<span class="badge text-bg-light" th:title="${'허용된 행의 컬럼 표시 상한: ' + role.maxSensitivityLevel()}"
th:text="${role.maxSensitivityLevel()}">PUBLIC</span>
<form method="post" action="/roles/max-sensitivity" class="inline-form">
@@ -111,7 +113,7 @@
</td>
</tr>
<tr th:if="${#lists.isEmpty(roles)}">
<td colspan="5" class="text-muted">등록된 역할이 없습니다.</td>
<td th:colspan="${backofficeTrack == 'DDS'} ? 4 : 5" class="text-muted">등록된 역할이 없습니다.</td>
</tr>
</tbody>
</table>