source: target/classes/templates/user-my-orders.ftl

Last change on this file was e9b70f6, checked in by makyjovanovsky <mjovanovski04@…>, 22 months ago

order

  • Property mode set to 100644
File size: 5.0 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>My orders</title>
6 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
7 <!-- Font Awesome -->
8 <link
9 href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
10 rel="stylesheet"
11 />
12 <!-- Google Fonts -->
13 <link
14 href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
15 rel="stylesheet"
16 />
17 <!-- MDB -->
18 <link
19 href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.css"
20 rel="stylesheet"
21 />
22 <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
23 integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
24 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
25</head>
26<body>
27<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
28 <a class="navbar-brand" href="#">Salon Bella</a>
29 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
30 <span class="navbar-toggler-icon"></span>
31 </button>
32
33 <div class="collapse navbar-collapse" id="navbarSupportedContent">
34 <ul class="navbar-nav mr-auto">
35 <li class="nav-item ">
36 <a class="nav-link" href="/userDashboard">Home <span class="sr-only">(current)</span></a>
37 </li>
38
39 <li class="nav-item dropdown">
40 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
41 Functions - Reservations
42 </a>
43 <div class="dropdown-menu" aria-labelledby="navbarDropdown">
44 <a class="dropdown-item" href="/schedule-reservation">Schedule Reservations</a>
45 <a class="dropdown-item" href="/my-reservations">My scheduled reservations</a>
46 </div>
47 </li>
48
49 <li class="nav-item dropdown">
50 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
51 Functions - Orders
52 </a>
53 <div class="dropdown-menu" aria-labelledby="navbarDropdown">
54 <a class="dropdown-item" href="/order">Order Products</a>
55 <a class="dropdown-item" href="/my-orders">Ordered Products</a>
56 </div>
57 </li>
58
59 </ul>
60 <form class="form-inline my-2 my-lg-0" method="get" action="/logout">
61 <button class="btn btn-outline-info my-2 my-sm-0" type="submit">Log out</button>
62 </form>
63 </div>
64</nav>
65
66<table class="table table-striped">
67 <thead>
68 <tr>
69 <th scope="col">Date</th>
70 <th scope="col">Order Details</th>
71 <th scope="col">Total Price</th>
72 <th scope="col">Status</th>
73 <th scope="col">Cancel</th>
74 </tr>
75 </thead>
76 <tbody>
77 <#if orders??>
78 <#list orders as order>
79 <tr>
80 <td>${order['localDate']}</td>
81 <td>
82 <#list order['orderDetails'] as detail>
83 <p>
84 <span>${detail['name']}</span>
85 <span>${detail['quantity']}</span>
86 </p>
87 </#list>
88 </td>
89 <td>${order['total']} ден.</td>
90 <td>${order['status']}</td>
91 <td>
92 <form method="post" action="/cancel-order">
93 <input type="text" value="${order['id']}" name="id" hidden/>
94 <button type="submit" class="btn btn-primary">Cancel Order</button>
95 </form>
96 </td>
97 </tr>
98 </#list>
99 </#if>
100 </tbody>
101</table>
102<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
103<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
104<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
105<script
106 type="text/javascript"
107 src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js"
108></script>
109</body>
110</html>
Note: See TracBrowser for help on using the repository browser.