Last change
on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 21 months ago |
code added, trial 2
|
-
Property mode
set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="UTF-8">
|
---|
5 | <title>Title</title>
|
---|
6 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
|
---|
7 | integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | <nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="height: 55px">
|
---|
11 | <div class="collapse navbar-collapse" id="navbarSupportedContent">
|
---|
12 | <ul class="navbar-nav mr-auto">
|
---|
13 | <li class="nav-item"><a style="color: white; font-weight: bolder; text-decoration: none;"
|
---|
14 | th:href="@{/home}">Врати се назад</a></li>
|
---|
15 | </ul>
|
---|
16 | </div>
|
---|
17 | </nav>
|
---|
18 | <h1 class="display-4" style="margin-left: 5%; font-size: 33px;">Нарачки</h1>
|
---|
19 |
|
---|
20 |
|
---|
21 | <div th:each="order : ${orders}" style="width: 90%; margin-left: auto; margin-right: auto; margin-top:10px;" class="border">
|
---|
22 | <table class="table container-fluid" >
|
---|
23 | <tr><th scope="col" style="width: 25%">Број</th><th scope="col"style="width: 25%">Статус</th><th scope="col" style="width: 25%">Производ</th><th scope="col"style="width: 25%"></th></tr>
|
---|
24 |
|
---|
25 | <tr>
|
---|
26 | <td th:text="${order.getOrderId()}"></td>
|
---|
27 | <td th:text="${order.getOrderStatus()}"></td>
|
---|
28 | <td>
|
---|
29 | <div th:each="food : ${orderHasFoods.get(order.getOrderId())}" >
|
---|
30 | <span th:text="${food.getFoodItemName()}"></span>
|
---|
31 | <th:block th:each = "q1: ${quantity}">
|
---|
32 | <th:block th:each = "q2 : ${q1}">
|
---|
33 | <span th:if = "${q2.getOrderHasFoodKey().orderId == order.getOrderId() && food.getFoodItemId() == q2.getOrderHasFoodKey().foodItemId }" th:text = "${q2.quantity}">
|
---|
34 |
|
---|
35 | </span>
|
---|
36 | </th:block>
|
---|
37 | </th:block>
|
---|
38 | </div>
|
---|
39 |
|
---|
40 | </td>
|
---|
41 |
|
---|
42 | <td><a class="btn btn-success text-white " th:href="@{'/changeOrderStatus/{id}' (id = ${order.getOrderId()})}">Промени го статусот во спремна</a></td>
|
---|
43 | </tr>
|
---|
44 | </table>
|
---|
45 | </div>
|
---|
46 |
|
---|
47 | </body>
|
---|
48 | </html> |
---|
Note:
See
TracBrowser
for help on using the repository browser.