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="@{'/ceni/{id}' (id=${cena?.id})}">
|
---|
127 | <h1>Додади нова цена на оброк</h1>
|
---|
128 |
|
---|
129 | <div class="form-group mb-3">
|
---|
130 | <label for="f1">Бр.Цена</label>
|
---|
131 | <input type="number" class="form-control form-control-lg"
|
---|
132 | id="f1"
|
---|
133 | name="id"
|
---|
134 | th:value="${cena?.id}"
|
---|
135 | required>
|
---|
136 | </div>
|
---|
137 |
|
---|
138 | <div class="form-group mb-3">
|
---|
139 | <label>Оброк</label><br/>
|
---|
140 | <select id="f2" name="obrokId" class="form-control-lg">
|
---|
141 | <option th:each="obrok: ${obroci}" th:value="${obrok.id}" th:text="${obrok.ime}"> [obrok_id]</option>
|
---|
142 | </select>
|
---|
143 | </div>
|
---|
144 |
|
---|
145 | <div class="form-group mb-3">
|
---|
146 | <label for="f3">Износ</label>
|
---|
147 | <input type="number" class="form-control form-control-lg"
|
---|
148 | id="f3"
|
---|
149 | name="cenaIznos"
|
---|
150 | th:value="${cena?.cenaIznos}"
|
---|
151 | required>
|
---|
152 | </div>
|
---|
153 | <div class="form-group mb-3">
|
---|
154 | <label for="f4">Важи Од</label>
|
---|
155 | <input type="date" class="form-control form-control-lg"
|
---|
156 | id="f4"
|
---|
157 | name="cenaVaziOd"
|
---|
158 | th:value="${cena?.CenaVaziOd}"
|
---|
159 | required>
|
---|
160 | </div>
|
---|
161 |
|
---|
162 | <div class="form-group mb-3">
|
---|
163 | <label for="f5">Важи До </label>
|
---|
164 | <input type="date" class="form-control form-control-lg"
|
---|
165 | id="f5"
|
---|
166 | name="cenaVaziDo"
|
---|
167 | th:value="${cena?.CenaVaziDo}"
|
---|
168 | required>
|
---|
169 | </div>
|
---|
170 |
|
---|
171 | <button id="submit" type="submit" class="btn btn-info">Додади</button>
|
---|
172 | <a id="back" href="/ceni" type="button" class="btn btn-primary">Назад до оброци</a>
|
---|
173 | </form>
|
---|
174 | </div>
|
---|
175 | </div>
|
---|
176 |
|
---|
177 | <footer>
|
---|
178 | <div class="container">
|
---|
179 | <div class="row">
|
---|
180 | <div class="col-md-12">
|
---|
181 | <ul>
|
---|
182 | <li><a href="/">За Нас</a></li>
|
---|
183 | <li><a href="/">ЧПП</a></li>
|
---|
184 | <li><a href="/">Контакт</a></li>
|
---|
185 | <li><a href="/"></a></li>
|
---|
186 | <p>© Сите права задржани. <a href="/">Eaty's Скопје</a></p>
|
---|
187 | </ul>
|
---|
188 | </div>
|
---|
189 | </div>
|
---|
190 | </div>
|
---|
191 | </footer>
|
---|
192 |
|
---|
193 | </body>
|
---|
194 | </html> |
---|