[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 | .width1 {
|
---|
| 11 | width: 27rem;
|
---|
| 12 | background: #f3f3f3;
|
---|
| 13 | border-radius: 7px;
|
---|
| 14 | padding: 1rem;
|
---|
| 15 | margin-top: 5vh;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | body {
|
---|
| 19 | background-color: rgb(24, 25, 26);
|
---|
| 20 | color: white;
|
---|
| 21 | min-height: 100vh;
|
---|
| 22 | display: flex;
|
---|
| 23 | flex-direction: column;
|
---|
| 24 | }
|
---|
| 25 |
|
---|
| 26 | a {
|
---|
| 27 | text-decoration: none;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | #divche {
|
---|
| 31 | padding: 0 50px;
|
---|
| 32 | }
|
---|
| 33 |
|
---|
| 34 | footer {
|
---|
| 35 | margin-top: auto;
|
---|
| 36 | padding: 15px 0;
|
---|
| 37 | color: white;
|
---|
| 38 | background: #262626;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | footer li {
|
---|
| 42 | float: left;
|
---|
| 43 | padding: 0 10px;
|
---|
| 44 | list-style: none;
|
---|
| 45 | }
|
---|
| 46 |
|
---|
| 47 | footer a {
|
---|
| 48 | color: white;
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 | footer p {
|
---|
| 52 | float: right;
|
---|
| 53 | }
|
---|
| 54 |
|
---|
| 55 | .formche {
|
---|
| 56 | margin-top: 15px;
|
---|
| 57 | }
|
---|
| 58 |
|
---|
| 59 | #spanche {
|
---|
| 60 | font-size: 40px;
|
---|
| 61 | display: table;
|
---|
| 62 | margin: 0 auto;
|
---|
| 63 | }
|
---|
| 64 |
|
---|
| 65 | .linkovi {
|
---|
| 66 | text-decoration: none;
|
---|
| 67 | color: white;
|
---|
| 68 | padding: 0 10px;
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | .lists {
|
---|
| 72 | list-style-type: none;
|
---|
| 73 | }
|
---|
| 74 |
|
---|
| 75 | .accountnamestyle{
|
---|
| 76 | list-style-type: none;
|
---|
| 77 | text-decoration: none;
|
---|
| 78 | color: orangered;
|
---|
| 79 | padding: 0 10px;
|
---|
| 80 | margin-right: 5px;
|
---|
| 81 | }
|
---|
| 82 | .usericonstyle{
|
---|
| 83 | margin-left: 10px;
|
---|
| 84 | }
|
---|
| 85 |
|
---|
| 86 | </style>
|
---|
| 87 |
|
---|
| 88 | </head>
|
---|
| 89 | <body>
|
---|
| 90 |
|
---|
| 91 | <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
|
---|
| 92 | <div class="container-fluid">
|
---|
| 93 | <a class="navbar-brand" href="/">Eaty's</a>
|
---|
| 94 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
|
---|
| 95 | <span class="navbar-toggler-icon"></span>
|
---|
| 96 | </button>
|
---|
| 97 | <div class="collapse navbar-collapse" id="mynavbar">
|
---|
| 98 | <ul class="navbar-nav me-auto">
|
---|
| 99 | <li class="nav-item">
|
---|
| 100 | <a class="nav-link" href="/menija">Менија</a>
|
---|
| 101 | </li>
|
---|
| 102 | <li class="nav-item">
|
---|
| 103 | <a class="nav-link" href="/obroci">Оброци</a>
|
---|
| 104 | </li>
|
---|
| 105 | <li class="nav-item">
|
---|
| 106 | <a class="nav-link" href="/rezervacii">Резервации</a>
|
---|
| 107 | </li>
|
---|
| 108 | </ul>
|
---|
| 109 | <form class="d-flex">
|
---|
| 110 | <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
|
---|
| 111 | <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
|
---|
| 112 | <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
|
---|
| 113 | <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
|
---|
| 114 | <li class="lists">
|
---|
| 115 | <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
|
---|
| 116 | <span class="accountnamestyle" sec:authentication="name"></span>
|
---|
| 117 | </i>
|
---|
| 118 | </li>
|
---|
| 119 | </form>
|
---|
| 120 | </div>
|
---|
| 121 | </div>
|
---|
| 122 | </nav>
|
---|
| 123 |
|
---|
| 124 | <div class="d-flex text-center justify-content-center">
|
---|
| 125 | <div class="width1 bg-dark">
|
---|
| 126 | <form method="POST" th:action="@{'/rezervacii/add-rezervacija/{id}' (id=${rezervacija?.id})}">
|
---|
| 127 | <h1>Креирај нова резервација</h1>
|
---|
| 128 | <br>
|
---|
| 129 |
|
---|
| 130 | <div class="form-group mb-3">
|
---|
| 131 | <label for="f1">Време</label>
|
---|
| 132 | <input type="datetime-local" class="form-control form-control-lg"
|
---|
| 133 | id="f1"
|
---|
| 134 | name="vreme"
|
---|
| 135 | th:value="${rezervacija?.vreme}"
|
---|
| 136 | required>
|
---|
| 137 | </div>
|
---|
| 138 | <div class="form-group mb-3">
|
---|
| 139 | <label for="f2">Бр. Луѓе</label>
|
---|
| 140 | <input type="number" class="form-control form-control-lg"
|
---|
| 141 | id="f2"
|
---|
| 142 | name="lugje"
|
---|
| 143 | th:value="${rezervacija?.lugje}"
|
---|
| 144 | required>
|
---|
| 145 | </div>
|
---|
| 146 | <div class="form-group mb-3">
|
---|
| 147 | <label for="f3">Опис</label>
|
---|
| 148 | <input type="text" class="form-control form-control-lg"
|
---|
| 149 | id="f3"
|
---|
| 150 | name="opis"
|
---|
| 151 | th:value="${rezervacija?.opis}"
|
---|
| 152 | required>
|
---|
| 153 | </div>
|
---|
| 154 | <div class="form-group mb-3">
|
---|
| 155 | <label>Ресторан</label><br/>
|
---|
| 156 | <select id="f4" name="restoranId" class="form-control-lg">
|
---|
| 157 | <option th:each="restoran: ${restorani}" th:value="${restoran.id}" th:text="${restoran.ime}"> [restoran_id]</option>
|
---|
| 158 | </select>
|
---|
| 159 | </div>
|
---|
| 160 | <br>
|
---|
| 161 | <button id="submit" type="submit" class="btn btn-info">Резервирај</button>
|
---|
| 162 | <a id="back" href="/rezervacii" type="button" class="btn btn-primary">Назад до резервации</a>
|
---|
| 163 | </form>
|
---|
| 164 | </div>
|
---|
| 165 | </div>
|
---|
| 166 |
|
---|
| 167 | <footer>
|
---|
| 168 | <div class="container">
|
---|
| 169 | <div class="row">
|
---|
| 170 | <div class="col-md-12">
|
---|
| 171 | <ul>
|
---|
| 172 | <li><a href="/">За Нас</a></li>
|
---|
| 173 | <li><a href="/">ЧПП</a></li>
|
---|
| 174 | <li><a href="/">Контакт</a></li>
|
---|
| 175 | <li><a href="/"></a></li>
|
---|
| 176 | <p>© Сите права задржани. <a href="/">Eaty's Скопје</a></p>
|
---|
| 177 | </ul>
|
---|
| 178 | </div>
|
---|
| 179 | </div>
|
---|
| 180 | </div>
|
---|
| 181 | </footer>
|
---|
| 182 |
|
---|
| 183 | </body>
|
---|
| 184 | </html> |
---|