Employee Update Confirm

This commit is contained in:
2026-10-21 10:22:00 +09:00
parent 8a0b53522b
commit 3e0be17cef

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>社員編集確認</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<div th:replace="~{fragments/header :: header}"></div>
<main>
<h1>社員編集確認</h1>
<div class="card">
<table>
<th:block th:if="${admin}">
<tr><th>社員名</th><td th:text="${form.nmEmployee}"></td></tr>
<tr><th>社員名よみ</th><td th:text="${form.knEmployee}"></td></tr>
<tr><th>メールアドレス</th><td th:text="${form.mailAddress}"></td></tr>
<tr><th>管理者フラグ</th><td th:text="${form.flgAdmin == '1'} ? '1:管理者' : '0:一般'"></td></tr>
<tr><th>退職フラグ</th><td th:text="${form.flgRetirement == '1'} ? '1:退職' : '0:所属'"></td></tr>
</th:block>
<tr><th>パスワード</th><td th:text="${#strings.isEmpty(form.password)} ? '(変更しない)' : '********'"></td></tr>
</table>
<form th:action="@{/employees/edit/execute}" method="post" style="display:inline">
<input type="hidden" name="idEmployee" th:value="${form.idEmployee}">
<input type="hidden" name="nmEmployee" th:value="${form.nmEmployee}">
<input type="hidden" name="knEmployee" th:value="${form.knEmployee}">
<input type="hidden" name="mailAddress" th:value="${form.mailAddress}">
<input type="hidden" name="flgAdmin" th:value="${form.flgAdmin}">
<input type="hidden" name="flgRetirement" th:value="${form.flgRetirement}">
<input type="hidden" name="password" th:value="${form.password}">
<button type="submit">編集</button>
</form>
<form th:action="@{/employees/edit/input}" method="post" style="display:inline">
<input type="hidden" name="idEmployee" th:value="${form.idEmployee}">
<input type="hidden" name="nmEmployee" th:value="${form.nmEmployee}">
<input type="hidden" name="knEmployee" th:value="${form.knEmployee}">
<input type="hidden" name="mailAddress" th:value="${form.mailAddress}">
<input type="hidden" name="flgAdmin" th:value="${form.flgAdmin}">
<input type="hidden" name="flgRetirement" th:value="${form.flgRetirement}">
<input type="hidden" name="password" th:value="${form.password}">
<button type="submit" class="sub">社員情報入力に戻る</button>
</form>
</div>
</main>
</body>
</html>