[ADD]:トップメニューに戻るボタンを追加
This commit is contained in:
@@ -12,6 +12,12 @@
|
|||||||
図書貸出処理
|
図書貸出処理
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
|
<div class="float-end">
|
||||||
|
<a th:href="@{/topmenu}">
|
||||||
|
トップメニューへ
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
以下の図書を貸出します。貸出先の社員IDと返却予定日を入力してください。
|
以下の図書を貸出します。貸出先の社員IDと返却予定日を入力してください。
|
||||||
</p>
|
</p>
|
||||||
@@ -20,8 +26,7 @@
|
|||||||
図書情報
|
図書情報
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<form th:action="@{/bookLend/confirm}" method="POST"
|
<form th:action="@{/bookLend/confirm}" method="POST" id="lendForm">
|
||||||
id="lendForm">
|
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<table class="info-table">
|
<table class="info-table">
|
||||||
@@ -36,7 +41,7 @@
|
|||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<!-- <td th:hidden="*{book.bookId}"></td>-->
|
<!-- <td th:hidden="*{book.bookId}"></td>-->
|
||||||
<td th:text="*{book.bookManageId}"></td>
|
<td th:text="*{book.bookManageId}"></td>
|
||||||
<td th:text="*{book.title}"></td>
|
<td th:text="*{book.title}"></td>
|
||||||
<td th:text="*{book.author}"></td>
|
<td th:text="*{book.author}"></td>
|
||||||
@@ -112,7 +117,7 @@
|
|||||||
<p>
|
<p>
|
||||||
貸出処理を行うと、対象の図書のステータスが「貸出中」に変更されます。
|
貸出処理を行うと、対象の図書のステータスが「貸出中」に変更されます。
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<input type="hidden" name="bookManageId" th:value="${book.bookManageId}">
|
<input type="hidden" name="bookManageId" th:value="${book.bookManageId}">
|
||||||
<input type="hidden" name="bookId" th:value="${book.bookId}">
|
<input type="hidden" name="bookId" th:value="${book.bookId}">
|
||||||
|
|
||||||
|
|||||||
@@ -10,53 +10,57 @@
|
|||||||
<body>
|
<body>
|
||||||
<h1>貸出中図書一覧</h1>
|
<h1>貸出中図書一覧</h1>
|
||||||
|
|
||||||
|
<div class="float-end">
|
||||||
<table>
|
<a th:href="@{/topmenu}">トップメニューへ</a>
|
||||||
|
</div>
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>社員ID</th>
|
|
||||||
<th>社員名</th>
|
|
||||||
<th>管理ID</th>
|
|
||||||
<th>タイトル</th>
|
|
||||||
<th>返却予定日</th>
|
|
||||||
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
|
|
||||||
<tbody>
|
<table>
|
||||||
<tr th:each="booklist : ${list}">
|
|
||||||
|
|
||||||
<td th:text="*{booklist.employeeBooklend.employeeId}"></td>
|
<thead>
|
||||||
<td th:text="*{booklist.employeeBooklend.employeeName}"></td>
|
<tr>
|
||||||
<td th:text="*{booklist.book.bookManageId}"></td>
|
<th>社員ID</th>
|
||||||
<td th:text="*{booklist.book.title}"></td>
|
<th>社員名</th>
|
||||||
<td th:text="*{booklist.bookReturnDate}"></td>
|
<th>管理ID</th>
|
||||||
|
<th>タイトル</th>
|
||||||
|
<th>返却予定日</th>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<tbody>
|
||||||
<form th:action="@{/return-book}" method="get">
|
<tr th:each="booklist : ${list}">
|
||||||
<button type="submit" name="lendId" th:value="${booklist.lendId}"
|
|
||||||
onclick="return MoveCheck();">返却
|
|
||||||
</button>
|
|
||||||
</form>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
</tr>
|
<td th:text="*{booklist.employeeBooklend.employeeId}"></td>
|
||||||
|
<td th:text="*{booklist.employeeBooklend.employeeName}"></td>
|
||||||
</tbody>
|
<td th:text="*{booklist.book.bookManageId}"></td>
|
||||||
|
<td th:text="*{booklist.book.title}"></td>
|
||||||
</table>
|
<td th:text="*{booklist.bookReturnDate}"></td>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<td>
|
||||||
|
<form th:action="@{/return-book}" method="get">
|
||||||
|
<button type="submit" name="lendId" th:value="${booklist.lendId}"
|
||||||
|
onclick="return MoveCheck();">返却
|
||||||
|
</button>
|
||||||
|
</form>
|
||||||
|
</td>
|
||||||
|
|
||||||
function MoveCheck() {
|
</tr>
|
||||||
return window.confirm("返却処理を実行します。よろしいですか?");
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
</tbody>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
<script>
|
||||||
|
|
||||||
|
function MoveCheck() {
|
||||||
|
return window.confirm("返却処理を実行します。よろしいですか?");
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user