source: src/main/resources/templates/shopping-cart.html

Last change on this file was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago

Adding project to repo

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[b3f2adb]1<!DOCTYPE html>
2<html lang="en" xmlns:th="http://www.thymeleaf.org">
3<head>
4 <title>Eaty's</title>
5 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
6 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
7
8 <style>
9 body {
10 background-color: rgb(24, 25, 26);
11 color: white;
12 min-height: 100vh;
13 display: flex;
14 flex-direction: column;
15 }
16
17 a {
18 text-decoration: none;
19 }
20
21 #divche {
22 padding: 0 50px;
23 }
24
25 footer {
26 margin-top: auto;
27 padding: 15px 0;
28 color: white;
29 background: #262626;
30 }
31
32 footer li {
33 float: left;
34 padding: 0 10px;
35 list-style: none;
36 }
37
38 footer a {
39 color: white;
40 }
41
42 footer p {
43 float: right;
44 }
45
46 .formche {
47 margin-top: 15px;
48 }
49
50 #spanche {
51 font-size: 40px;
52 display: table;
53 margin: 0 auto;
54 }
55
56 .linkovi {
57 text-decoration: none;
58 color: white;
59 padding: 0 10px;
60 }
61
62 .lists {
63 list-style-type: none;
64 }
65
66 .accountnamestyle{
67 list-style-type: none;
68 text-decoration: none;
69 color: orangered;
70 padding: 0 10px;
71 margin-right: 5px;
72 }
73 .usericonstyle{
74 margin-left: 10px;
75 }
76 </style>
77
78</head>
79<body>
80
81<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
82 <div class="container-fluid">
83 <a class="navbar-brand" href="/">Eaty's</a>
84 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
85 <span class="navbar-toggler-icon"></span>
86 </button>
87 <div class="collapse navbar-collapse" id="mynavbar">
88 <ul class="navbar-nav me-auto">
89 <li class="nav-item">
90 <a class="nav-link" href="/menija">Менија</a>
91 </li>
92 <li class="nav-item">
93 <a class="nav-link" href="/obroci">Оброци</a>
94 </li>
95 <li class="nav-item">
96 <a class="nav-link" href="/rezervacii">Резервации</a>
97 </li>
98 </ul>
99 <form class="d-flex">
100 <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
101 <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
102 <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
103 <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
104 <li class="lists">
105 <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
106 <span class="accountnamestyle" sec:authentication="name"></span>
107 </i>
108 </li>
109 </form>
110 </div>
111 </div>
112</nav>
113
114<div id="divche">
115 <div>
116 <br>
117 <h2 class="text-center">Купувачка кошничка на
118 <span sec:authentication="name"></span>
119 </h2>
120 <br>
121 </div>
122 <table class="table table-striped table-dark">
123 <thead>
124 <tr>
125 <th scope="col">Оброк</th>
126 <th scope="col">Количина</th>
127 <th scope="col">Цена</th>
128 <th scope="col"></th>
129 </tr>
130 </thead>
131 <tbody>
132 <!-- For each user you should have one <tr> like below -->
133 <tr class="item" th:each="obrok: ${obroci}">
134 <td class="align-middle" th:text="${obrok.obrok.ime}">[obrok.obrok.ime]</td>
135 <td class="align-middle" th:text="${obrok.kolicina}">[obrok.kolicina]</td>
136 <td class="align-middle" th:text="${obrok.cena}">[obrok.cena]</td>
137
138 <td>
139 <!-- ForumUsersController.delete (Only ADMIN can see this element)-->
140 <form method="POST" th:action="@{'/se-sostoi-od/delete-obrok/{id}' (id=${obrok.obrok.id})}" >
141 <button type="submit" class="btn btn-danger btn-sm mb-3 formche">Избриши Оброк</button>
142 </form>
143
144 </td>
145 </tr>
146 </tbody>
147 </table>
148
149 <div>
150 <br>
151 <br>
152 <label class="h4">Вкупно: <span class="text-success" th:text='${amount}'/><span class="text-success"> ден.</span></label>
153 <form method="POST" th:action="@{'/se-sostoi-od/payment'}" >
154 <button type="submit" class="btn btn-info btn-sm mb-3">Наплати</button>
155 </form>
156 </div>
157</div>
158
159<footer>
160 <div class="container">
161 <div class="row">
162 <div class="col-md-12">
163 <ul>
164 <li><a href="/">За Нас</a></li>
165 <li><a href="/">ЧПП</a></li>
166 <li><a href="/">Контакт</a></li>
167 <li><a href="/"></a></li>
168 <p>&copy; Сите права задржани. <a href="/">Eaty's Скопје</a></p>
169 </ul>
170 </div>
171 </div>
172 </div>
173</footer>
174
175</body>
176</html>
Note: See TracBrowser for help on using the repository browser.