This commit is contained in:
2026-09-25 16:38:17 +09:00
5 changed files with 90 additions and 23 deletions

View File

@@ -12,6 +12,27 @@
<h1>社内図書一覧</h1>
<div class="float-end">
</div>
<form class="input-group" th:action="@{/searchBooks}" th:object="${bookSearchForm}" method="get">
<input type="text" th:field="*{keyword}" class="form-control" placeholder="キーワードを入力">
<button class="btn btn-outline-success" type="submit">
検索
</button>
</form>
<form method="post" th:action="@{/clearBookList}">
<button class="button button-secondary" type="submit">
クリア
</button>
</form>
<p>※「タイトル」「出版社」「著者名」で検索</p>
<form method="get" action="bookLend">
<table class="table table-striped">
@@ -68,7 +89,7 @@
貸出
</button>
</form>
<form method="get" action="/updateconfirm">
<form method="post" action="/updateconfirm">
<input type="hidden" name="bookManageId" th:value="*{book.bookManageId}">
<button type="submit">更新</button>
</form>
@@ -77,8 +98,12 @@
<button type="submit">削除</button>
</form>
</td>
</tr>
<tr th:if="${#lists.isEmpty(book)}">
<td colspan="15">
該当する図書がありません
</td>
</tr>
</tbody>
</table>