[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 | <style>
|
---|
| 8 | body {
|
---|
| 9 | background-color: rgb(24, 25, 26);
|
---|
| 10 | color: white;
|
---|
| 11 | min-height: 100vh;
|
---|
| 12 | display: flex;
|
---|
| 13 | flex-direction: column;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | a {
|
---|
| 17 | text-decoration: none;
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | #divche {
|
---|
| 21 | padding: 0 50px;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | footer {
|
---|
| 25 | margin-top: auto;
|
---|
| 26 | padding: 15px 0;
|
---|
| 27 | color: white;
|
---|
| 28 | background: #262626;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | footer li {
|
---|
| 32 | float: left;
|
---|
| 33 | padding: 0 10px;
|
---|
| 34 | list-style: none;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | footer a {
|
---|
| 38 | color: white;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | footer p {
|
---|
| 42 | float: right;
|
---|
| 43 | }
|
---|
| 44 |
|
---|
| 45 | .formche {
|
---|
| 46 | margin-top: 15px;
|
---|
| 47 | }
|
---|
| 48 |
|
---|
| 49 | #spanche {
|
---|
| 50 | font-size: 40px;
|
---|
| 51 | display: table;
|
---|
| 52 | margin: 0 auto;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | .linkovi {
|
---|
| 56 | text-decoration: none;
|
---|
| 57 | color: white;
|
---|
| 58 | padding: 0 10px;
|
---|
| 59 | }
|
---|
| 60 |
|
---|
| 61 | .lists {
|
---|
| 62 | list-style-type: none;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | .accountnamestyle{
|
---|
| 66 | list-style-type: none;
|
---|
| 67 | text-decoration: none;
|
---|
| 68 | color: orangered;
|
---|
| 69 | padding: 0 10px;
|
---|
| 70 | margin-right: 5px;
|
---|
| 71 | }
|
---|
| 72 | .usericonstyle{
|
---|
| 73 | margin-left: 10px;
|
---|
| 74 | }
|
---|
| 75 | </style>
|
---|
| 76 |
|
---|
| 77 | </head>
|
---|
| 78 | <body>
|
---|
| 79 |
|
---|
| 80 | <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
|
---|
| 81 | <div class="container-fluid">
|
---|
| 82 | <a class="navbar-brand" href="/">Eaty's</a>
|
---|
| 83 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
|
---|
| 84 | <span class="navbar-toggler-icon"></span>
|
---|
| 85 | </button>
|
---|
| 86 | <div class="collapse navbar-collapse" id="mynavbar">
|
---|
| 87 | <ul class="navbar-nav me-auto">
|
---|
| 88 | <li class="nav-item">
|
---|
| 89 | <a class="nav-link" href="/menija">Менија</a>
|
---|
| 90 | </li>
|
---|
| 91 | <li class="nav-item">
|
---|
| 92 | <a class="nav-link" href="/obroci">Оброци</a>
|
---|
| 93 | </li>
|
---|
| 94 | <li class="nav-item">
|
---|
| 95 | <a class="nav-link" href="/rezervacii">Резервации</a>
|
---|
| 96 | </li>
|
---|
| 97 | </ul>
|
---|
| 98 | <form class="d-flex">
|
---|
| 99 | <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
|
---|
| 100 | <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
|
---|
| 101 | <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
|
---|
| 102 | <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
|
---|
| 103 | <li class="lists">
|
---|
| 104 | <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
|
---|
| 105 | <span class="accountnamestyle" sec:authentication="name"></span>
|
---|
| 106 | </i>
|
---|
| 107 | </li>
|
---|
| 108 | </form>
|
---|
| 109 | </div>
|
---|
| 110 | </div>
|
---|
| 111 | </nav>
|
---|
| 112 |
|
---|
| 113 |
|
---|
| 114 | <div id="divche">
|
---|
| 115 | <div>
|
---|
| 116 |
|
---|
| 117 | <!-- ForumUsersController.showAdd (Only ADMIN can see this element)-->
|
---|
| 118 | <br>
|
---|
| 119 | <a href="/ceni/add" class="btn btn-info" >
|
---|
| 120 | Додади нова цена на оброк
|
---|
| 121 | </a>
|
---|
| 122 | <h2 class="text-center">Оброци</h2>
|
---|
| 123 | <br>
|
---|
| 124 | </div>
|
---|
| 125 |
|
---|
| 126 | <table class="table table-striped table-dark">
|
---|
| 127 | <thead>
|
---|
| 128 | <tr>
|
---|
| 129 | <th scope="col">Оброк</th>
|
---|
| 130 | <th scope="col">Опис</th>
|
---|
| 131 | <th scope="col">Цена</th>
|
---|
| 132 | <th scope="col">Важи Од</th>
|
---|
| 133 | <th scope="col">Важи До</th>
|
---|
| 134 | <th scope="col"></th>
|
---|
| 135 | </tr>
|
---|
| 136 | </thead>
|
---|
| 137 | <tbody>
|
---|
| 138 | <!-- For each user you should have one <tr> like below -->
|
---|
| 139 | <tr class="item" th:each="cena: ${ceni}">
|
---|
| 140 | <td class="align-middle" th:text="${cena.obrok.ime}">[obrok.ime]</td>
|
---|
| 141 | <td class="align-middle" th:text="${cena.obrok.opis}">[obrok.opis]</td>
|
---|
| 142 | <td class="align-middle" th:text="${cena.CenaIznos}">[cena.CenaIznos]</td>
|
---|
| 143 | <td class="align-middle" th:text="${cena.CenaVaziOd}">[cena.VaziOd]</td>
|
---|
| 144 | <td class="align-middle" th:text="${cena.CenaVaziDo}">[cena.VaziOd]</td>
|
---|
| 145 |
|
---|
| 146 |
|
---|
| 147 | <td class="align-middle">
|
---|
| 148 | <!-- ForumUsersController.delete (Only ADMIN can see this element)-->
|
---|
| 149 |
|
---|
| 150 | <!-- ForumUsersController.showEdit (Only ADMIN can see this element)-->
|
---|
| 151 | <a th:href="@{'/ceni/{id}/edit' (id=${cena.id})}" class="btn btn-warning btn-sm pr-5" >Едитирај</a>
|
---|
| 152 | </td>
|
---|
| 153 |
|
---|
| 154 | </tr>
|
---|
| 155 | </tbody>
|
---|
| 156 | </table>
|
---|
| 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>© Сите права задржани. <a href="/">Eaty's Скопје</a></p>
|
---|
| 169 | </ul>
|
---|
| 170 | </div>
|
---|
| 171 | </div>
|
---|
| 172 | </div>
|
---|
| 173 | </footer>
|
---|
| 174 |
|
---|
| 175 | </body>
|
---|
| 176 | </html> |
---|