[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-family: "Courier New";
|
---|
| 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 | </style>
|
---|
| 78 |
|
---|
| 79 | </head>
|
---|
| 80 | <body>
|
---|
| 81 |
|
---|
| 82 | <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
|
---|
| 83 | <div class="container-fluid">
|
---|
| 84 | <a class="navbar-brand" href="/">Eaty's</a>
|
---|
| 85 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
|
---|
| 86 | <span class="navbar-toggler-icon"></span>
|
---|
| 87 | </button>
|
---|
| 88 | <div class="collapse navbar-collapse" id="mynavbar">
|
---|
| 89 | <ul class="navbar-nav me-auto">
|
---|
| 90 | <li class="nav-item">
|
---|
| 91 | <a class="nav-link" href="/menija">Менија</a>
|
---|
| 92 | </li>
|
---|
| 93 | <li class="nav-item">
|
---|
| 94 | <a class="nav-link" href="/obroci">Оброци</a>
|
---|
| 95 | </li>
|
---|
| 96 | <li class="nav-item">
|
---|
| 97 | <a class="nav-link" href="/rezervacii">Резервации</a>
|
---|
| 98 | </li>
|
---|
| 99 | </ul>
|
---|
| 100 | <form class="d-flex">
|
---|
| 101 | <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
|
---|
| 102 | <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
|
---|
| 103 | <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
|
---|
| 104 | <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
|
---|
| 105 | <li class="lists">
|
---|
| 106 | <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
|
---|
| 107 | <span class="accountnamestyle" sec:authentication="name"></span>
|
---|
| 108 | </i>
|
---|
| 109 | </li>
|
---|
| 110 | </form>
|
---|
| 111 | </div>
|
---|
| 112 | </div>
|
---|
| 113 | </nav>
|
---|
| 114 |
|
---|
| 115 | <div id="divche">
|
---|
| 116 | <div>
|
---|
| 117 | <br>
|
---|
| 118 | <a href="/rezervacii/add" class="btn btn-info" >
|
---|
| 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 | <th scope="col"></th>
|
---|
| 132 | <th scope="col"></th>
|
---|
| 133 | </tr>
|
---|
| 134 | </thead>
|
---|
| 135 | <tbody>
|
---|
| 136 | <!-- For each user you should have one <tr> like below -->
|
---|
| 137 | <tr class="item" th:each="rezervacija: ${rezervacii}">
|
---|
| 138 | <td class="align-middle" th:text="${rezervacija.restoran.ime}">[rezervacija.restoran.ime]</td>
|
---|
| 139 | <td class="align-middle" th:text="${rezervacija.vreme}">[rezervacija.vreme]</td>
|
---|
| 140 | <td class="align-middle" th:text="${rezervacija.lugje}">[rezervacija.lugje]</td>
|
---|
| 141 | <td class="align-middle" th:text="${rezervacija.opis}">[rezervacija.opis]</td>
|
---|
| 142 | <td class="align-middle"><a th:href="@{'/rezervacii/{id}/edit' (id=${rezervacija.id})}" class="btn btn-warning btn-sm pr-5" >Едитирај</a></td>
|
---|
| 143 | <td>
|
---|
| 144 |
|
---|
| 145 | <form method="POST" th:action="@{'/rezervacii/{id}/delete' (id=${rezervacija.id})}" >
|
---|
| 146 | <button type="submit" class="btn btn-danger btn-sm mb-3 formche">Откажи</button>
|
---|
| 147 | </form>
|
---|
| 148 | </td>
|
---|
| 149 | </tr>
|
---|
| 150 | </tbody>
|
---|
| 151 | </table>
|
---|
| 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> |
---|