source: src/main/resources/templates/restorani.html@ b3f2adb

Last change on this file since b3f2adb 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
Line 
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://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">-->
7 <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet">
8 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
9 <style>
10 body {
11 background-color: rgb(24, 25, 26);
12 color: white;
13 min-height: 100vh;
14 display: flex;
15 flex-direction: column;
16 }
17
18 a {
19 text-decoration: none;
20 }
21
22 #divche {
23 padding: 0 50px;
24 }
25
26 footer {
27 margin-top: auto;
28 padding: 15px 0;
29 color: white;
30 background: #262626;
31 }
32
33 footer li {
34 float: left;
35 padding: 0 10px;
36 list-style: none;
37 }
38
39 footer a {
40 color: white;
41 }
42
43 footer p {
44 float: right;
45 }
46
47 .formche {
48 margin-top: 15px;
49 }
50
51 #spanche {
52 font-size: 40px;
53 display: table;
54 margin: 0 auto;
55 }
56
57 .linkovi {
58 text-decoration: none;
59 color: white;
60 padding: 0 10px;
61 }
62
63 .lists {
64 list-style-type: none;
65 }
66
67 .accountnamestyle{
68 list-style-type: none;
69 text-decoration: none;
70 color: orangered;
71 padding: 0 10px;
72 margin-right: 5px;
73 }
74 .usericonstyle{
75 margin-left: 10px;
76 }
77
78
79 </style>
80</head>
81<body>
82
83<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
84 <div class="container-fluid">
85 <a class="navbar-brand" href="/">Eaty's</a>
86 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
87 <span class="navbar-toggler-icon"></span>
88 </button>
89 <div class="collapse navbar-collapse" id="mynavbar">
90 <ul class="navbar-nav me-auto">
91 <li class="nav-item">
92 <a class="nav-link" href="/menija">Менија</a>
93 </li>
94 <li class="nav-item">
95 <a class="nav-link" href="/obroci">Оброци</a>
96 </li>
97 <li class="nav-item">
98 <a class="nav-link" href="/rezervacii">Резервации</a>
99 </li>
100 </ul>
101 <form class="d-flex">
102 <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
103 <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
104 <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
105 <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
106 <li class="lists">
107 <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
108 <span class="accountnamestyle" sec:authentication="name"></span>
109 </i>
110 </li>
111 </form>
112 </div>
113 </div>
114</nav>
115
116<div id="divche">
117 <div>
118 <br>
119 <a href="/restorani/add" class="btn btn-primary" th:if="${korisnik?.ime == 'Ace'}">Додади нов ресторан</a>
120 <span id="spanche">Ресторани</span>
121 </div><br>
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 <th scope="col"></th>
130 </tr>
131 </thead>
132 <tbody>
133 <tr class="item" th:each="restoran: ${restorani}">
134 <td class="align-middle" th:text="${restoran.ime}">[restoran.ime]</td>
135 <td class="align-middle" th:text="${restoran.rejting}"> [restoran.rejting]</td>
136 <td class="align-middle" th:text="${restoran.adresa}">[restoran.adresa]</td>
137 <td class="align-middle"><a th:href="@{'/restorani/{id}/edit' (id=${restoran.id})}" class="btn btn-info btn-sm pr-5" th:if="${korisnik?.ime == 'Ace'}" >Едитирај</a></td>
138 <td class="align-middle">
139 <form method="POST" th:action="@{'/restorani/{id}/delete' (id=${restoran.id})}">
140 <button type="submit" class="btn btn-danger btn-sm mb-3 formche" th:if="${korisnik?.ime == 'Ace'}">Избриши</button>
141 </form>
142 </td>
143 </tr>
144 </tbody>
145 </table>
146</div>
147
148<footer>
149 <div class="container">
150 <div class="row">
151 <div class="col-md-12">
152 <ul>
153 <li><a href="/">За Нас</a></li>
154 <li><a href="/">ЧПП</a></li>
155 <li><a href="/">Контакт</a></li>
156 <li><a href="/"></a></li>
157 <p>&copy; Сите права задржани. <a href="/">Eaty's Скопје</a></p>
158 </ul>
159 </div>
160 </div>
161 </div>
162</footer>
163
164</body>
165</html>
Note: See TracBrowser for help on using the repository browser.