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> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('author.firstName')}" <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>
<div class="col"> <div class="col">
@ -76,7 +78,9 @@
</small> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('author.lastName')}" <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> </div>
</div> </div>
@ -104,7 +108,9 @@
</small> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('title')}" <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>
<div class="form-group bookform-section"> <div class="form-group bookform-section">
@ -130,7 +136,9 @@
</small> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('isbn')}" <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>
<div class="form-group bookform-section"> <div class="form-group bookform-section">
@ -156,7 +164,9 @@
</small> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('year')}" <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>
<div class="form-group bookform-section"> <div class="form-group bookform-section">
@ -190,7 +200,9 @@
</small> </small>
<div class="alert alert-danger mt-2" th:if="${#fields.hasErrors('price')}" <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>
<div class="form-group bookform-section"> <div class="form-group bookform-section">
@ -226,7 +238,7 @@
<br> <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'"> th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
button.page.list.return button.page.list.return
</a> </a>


Loading…
Cancel
Save