|
@ -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> |
|
|