[EDIT]:社員IDプルダウンとDB連携処理の実装途中
This commit is contained in:
@@ -78,12 +78,19 @@
|
||||
|
||||
<!-- <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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user