Browse Source

Prefer absolute URI for book list page; minor form update

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.2-alpha
Pekka Helenius 4 years ago
parent
commit
d9f674e4d8
1 changed files with 19 additions and 7 deletions
  1. +19
    -7
      bookstore/src/main/resources/templates/bookedit.html

+ 19
- 7
bookstore/src/main/resources/templates/bookedit.html View File

@ -50,7 +50,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('author.firstName')}"
th:errors="*{author.firstName}">Invalid author first name value</div>
th:errors="*{author.firstName}">
Invalid author first name value
</div>
</div>
<div class="col">
@ -76,7 +78,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('author.lastName')}"
th:errors="*{author.lastName}">Invalid author last name value</div>
th:errors="*{author.lastName}">
Invalid author last name value
</div>
</div>
</div>
</div>
@ -104,7 +108,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('title')}"
th:errors="*{title}">Invalid title</div>
th:errors="*{title}">
Invalid title
</div>
</div>
<div class="form-group bookform-section">
@ -130,7 +136,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('isbn')}"
th:errors="*{isbn}">Invalid ISBN code value</div>
th:errors="*{isbn}">
Invalid ISBN code value
</div>
</div>
<div class="form-group bookform-section">
@ -156,7 +164,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('year')}"
th:errors="*{year}">Invalid year value</div>
th:errors="*{year}">
Invalid year value
</div>
</div>
<div class="form-group bookform-section">
@ -190,7 +200,9 @@
</small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('price')}"
th:errors="*{price}">Invalid price value</div>
th:errors="*{price}">
Invalid price value
</div>
</div>
<div class="form-group bookform-section">
@ -226,7 +238,7 @@
<br>
<a class="btn btn-success" th:href="@{../__${listpage}__}"
<a class="btn btn-success" th:href="@{/__${listpage}__}"
th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return
</a>


Loading…
Cancel
Save