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