[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 |
|
---|
| 10 | #prpl {
|
---|
| 11 | background-color: #be2ed6;
|
---|
| 12 | color: white;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | #divche {
|
---|
| 16 | padding: 0 50px;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | .formche {
|
---|
| 20 | margin-top: 15px;
|
---|
| 21 | }
|
---|
| 22 |
|
---|
| 23 | body {
|
---|
| 24 | background-color: rgb(24, 25, 26);
|
---|
| 25 | color: white;
|
---|
| 26 | min-height: 100vh;
|
---|
| 27 | display: flex;
|
---|
| 28 | flex-direction: column;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | a {
|
---|
| 32 | text-decoration: none;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | footer {
|
---|
| 36 | margin-top: auto;
|
---|
| 37 | padding: 15px 0;
|
---|
| 38 | color: white;
|
---|
| 39 | background: #262626;
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | footer li {
|
---|
| 43 | float: left;
|
---|
| 44 | padding: 0 10px;
|
---|
| 45 | list-style: none;
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | footer a {
|
---|
| 49 | color: white;
|
---|
| 50 | }
|
---|
| 51 |
|
---|
| 52 | footer p {
|
---|
| 53 | float: right;
|
---|
| 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 |
|
---|
| 77 | </style>
|
---|
| 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 | <!-- ForumUsersController.showAdd (Only ADMIN can see this element)-->
|
---|
| 117 | <br>
|
---|
| 118 | <a href="/menija/add" class="add-item btn btn-info" th:if="${korisnik?.ime == 'Ace'}" >
|
---|
| 119 | Додади ново мени
|
---|
| 120 | </a>
|
---|
| 121 | <h2 class="text-center">Менија</h2>
|
---|
| 122 | <br>
|
---|
| 123 | </div>
|
---|
| 124 | <table class="table table-striped table-dark">
|
---|
| 125 | <thead>
|
---|
| 126 | <tr>
|
---|
| 127 | <th scope="col">Ресторан</th>
|
---|
| 128 | <th scope="col">Тип</th>
|
---|
| 129 | <th scope="col"></th>
|
---|
| 130 | <th scope="col"></th>
|
---|
| 131 | </tr>
|
---|
| 132 | </thead>
|
---|
| 133 | <tbody>
|
---|
| 134 | <!-- For each user you should have one <tr> like below -->
|
---|
| 135 | <tr class="item" th:each="meni: ${menija}">
|
---|
| 136 | <td class="align-middle" th:text="${meni.restoran.ime}">[meni.restoran]</td>
|
---|
| 137 | <td class="align-middle" th:text="${meni.tip.ime}">[meni.tip]</td>
|
---|
| 138 | <td class="align-middle"><a th:href="@{'/menija/{id}/edit' (id=${meni.id})}" class="btn btn-warning btn-sm pr-5" th:if="${korisnik?.ime == 'Ace'}" >Едитирај</a></td>
|
---|
| 139 | <td class="align-middle">
|
---|
| 140 | <!-- ForumUsersController.delete (Only ADMIN can see this element)-->
|
---|
| 141 | <form method="POST" th:action="@{'/menija/{id}/delete' (id=${meni.id})}" >
|
---|
| 142 | <button type="submit" class="btn btn-danger btn-sm mb-3 formche" th:if="${korisnik?.ime == 'Ace'}">Избриши</button>
|
---|
| 143 | </form>
|
---|
| 144 | <form method="POST" th:action="@{'/obroci/{id}/show' (id=${meni.id})}" >
|
---|
| 145 | <button type="submit" id="prpl" class="btn btn-sm mb-3 formche">Види Оброци</button>
|
---|
| 146 | </form>
|
---|
| 147 | </td>
|
---|
| 148 | </tr>
|
---|
| 149 | </tbody>
|
---|
| 150 | </table>
|
---|
| 151 |
|
---|
| 152 | </div>
|
---|
| 153 |
|
---|
| 154 | <footer>
|
---|
| 155 | <div class="container">
|
---|
| 156 | <div class="row">
|
---|
| 157 | <div class="col-md-12">
|
---|
| 158 | <ul>
|
---|
| 159 | <li><a href="/">За Нас</a></li>
|
---|
| 160 | <li><a href="/">ЧПП</a></li>
|
---|
| 161 | <li><a href="/">Контакт</a></li>
|
---|
| 162 | <li><a href="/"></a></li>
|
---|
| 163 | <p>© Сите права задржани. <a href="/">Eaty's Скопје</a></p>
|
---|
| 164 | </ul>
|
---|
| 165 | </div>
|
---|
| 166 | </div>
|
---|
| 167 | </div>
|
---|
| 168 | </footer>
|
---|
| 169 |
|
---|
| 170 | </body>
|
---|
| 171 | </html> |
---|