main
Last change
on this file since d14176d was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 19 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[d14176d] | 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
TracBrowser
for help on using the repository browser.