Browse Source

Add price to list page

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.1-alpha
Pekka Helenius 4 years ago
parent
commit
41ef10b09c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bookstore/src/main/resources/templates/booklist.html

+ 2
- 0
bookstore/src/main/resources/templates/booklist.html View File

@ -16,6 +16,7 @@
<th>Title</th> <th>Title</th>
<th>ISBN</th> <th>ISBN</th>
<th>Year</th> <th>Year</th>
<th>Price</th>
<th>Actions</th> <th>Actions</th>
<th></th> <th></th>
</tr> </tr>
@ -24,6 +25,7 @@
<td th:text="${book.title}"></td> <td th:text="${book.title}"></td>
<td th:text="${book.isbn}"></td> <td th:text="${book.isbn}"></td>
<td th:text="${book.year}"></td> <td th:text="${book.year}"></td>
<td th:text="${#numbers.formatDecimal(book.price, 1, 2)}"></td>
<td><a class="btn btn-danger" <td><a class="btn btn-danger"
th:attr="onclick='return confirm(\'' + 'Delete book: ' + ${book.title} + '?' + '\');'" th:attr="onclick='return confirm(\'' + 'Delete book: ' + ${book.title} + '?' + '\');'"
th:href="@{/bookdelete/{id}(id=${book.id})}">Delete</a></td> th:href="@{/bookdelete/{id}(id=${book.id})}">Delete</a></td>


Loading…
Cancel
Save