[add]ISBN条件を追加

This commit is contained in:
2026-09-28 13:09:29 +09:00
parent 044210adc3
commit 280331fdf6
4 changed files with 33 additions and 9 deletions

View File

@@ -26,7 +26,9 @@
<br><br>
<label for="isbn">ISBN<span style="color:red;">※</span></label><br>
<input type="text" id="isbn" name="isbn" placeholder="例:978-1-23-456789-0" th:value="${bookInsert.isbn}" required>
<input type="text" id="isbn" name="isbn" placeholder="ISBNを入力" th:value="${bookInsert.isbn}" required>
<div th:if="${#fields.hasErrors('isbn')}" th:errors="*{isbn}" style="color:red">
</div>
<br><br>
<label for="title">著者名<span style="color:red;">※</span></label><br>
@@ -69,7 +71,7 @@
<br><br>
<label for="condition">図書状態<span style="color:red;">※</span></label><br>
<select name="condition" required>
<select th:field="*{condition}" required>
<option value="">選択してください</option>
<option value="1">新品同様</option>
<option value="2">良好</option>

View File

@@ -17,7 +17,7 @@
<input type="hidden" name="title" th:value="${bookInsert.title}">
<input type="hidden" name="isbn" th:value="${bookInsert.isbn}">
<input type="hidden" name="author" th:value="${bookInsert.author}">
<input type="hidden" name="category" th:value="${bookInsert.bookCategoryId}">
<input type="hidden" name="bookCategoryId" th:value="${bookInsert.bookCategoryId}">
<input type="hidden" name="subcategory" th:value="${bookInsert.subcategory}">
<input type="hidden" name="publisher" th:value="${bookInsert.publisher}">
<input type="hidden" name="publicationDate" th:value="${bookInsert.publicationDate}">