Changeset d14176d for src/main/resources/templates/delivery.html
- Timestamp:
- 07/07/23 12:14:58 (16 months ago)
- Branches:
- main
- Parents:
- 1dd9226
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/delivery.html
r1dd9226 rd14176d 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>$Title$</title> 6 </head> 7 <body> 8 $END$ 9 </body> 10 </html> 1 <div th:if="${delivers.size() == 0}" 2 xmlns:sec="http://www.w3.org/1999/xhtml"> 3 <h1 style="text-align: center"> No orders to deliver!</h1> 4 </div> 5 6 <div class="container mb-4" > 7 <div class="row"> 8 <div class="col-12" th:if="${delivers.size() > 0}"> 9 <div class="table-responsive"> 10 <table class="table table-striped"> 11 <thead> 12 <tr> 13 <th scope="col">Order ID</th> 14 <th scope="col">Address</th> 15 <th scope="col">Total price</th> 16 <th scope="col">Date</th> 17 18 </tr> 19 </thead> 20 <tbody> 21 <tr th:each="delivery : ${delivers} " class="product"> 22 <td th:text="${delivery.getIdNaracka()}" ></td> 23 <td th:each="order : ${orders}" th:if="${order.getIdNaracka() == delivery.getIdNaracka()}" 24 th:text="${order.getAdresa()}"></td> 25 <td th:each="order : ${orders}" th:if="${order.getIdNaracka() == delivery.getIdNaracka()}" 26 th:text="${order.getVkupnoSuma()}"></td> 27 <td th:text="${delivery.getDatum()}" 28 ></td> 29 <td class="text-right"> 30 <form th:method="POST" th:action="@{'/delivery/{id}' (id=${delivery.getIdDostava()})}"> 31 <button type="submit" 32 class="btn btn-sm btn-primary cart-product" sec:authorize="hasRole('ROLE_DELIVER')"> 33 <i class="fa fa-trash">Order delivered</i> 34 </button> 35 </form> 36 </td> 37 </tr> 38 </tbody> 39 </table> 40 </div> 41 </div> 42 </div> 43 </div>
Note:
See TracChangeset
for help on using the changeset viewer.