[EDIT]:社員IDプルダウンとDB連携処理の実装途中

This commit is contained in:
h-seya
2026-09-25 16:36:17 +09:00
parent 795058750b
commit 856913615f

View File

@@ -78,12 +78,19 @@
<!-- <select th:field="*{employeeId}" onchange="this.form.action='/bookLend/employeeId';this.form.submit();">--> <!-- <select th:field="*{employeeId}" onchange="this.form.action='/bookLend/employeeId';this.form.submit();">-->
<select name="employeeId" id="employeeSelect">
<option value=""> <option value="">
社員IDを選択してください 社員IDを選択してください
</option> </option>
<option th:each="employee : ${employeeList}" th:value="${employee.employeeId}"> <!-- <option th:each="employee : ${employeeList}" th:value="${employee.employeeId}">-->
</option> <!-- </option>-->
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select> </select>
</div> </div>
@@ -190,7 +197,7 @@
if (confirm('この図書を貸出しますか?')) { if (confirm('この図書を貸出しますか?')) {
// OK選択時にフォーム送信を実行し、BookLendReturnControllerに処理を投げる // OK選択時にフォーム送信を実行し、BookLendReturnControllerに処理を投げる
document.getElementById('loanForm').submit(); document.getElementById('lendForm').submit();
} }
} }