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 |
|
---|
89 | </head>
|
---|
90 | <body>
|
---|
91 |
|
---|
92 | <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
|
---|
93 | <div class="container-fluid">
|
---|
94 | <a class="navbar-brand" href="/">Eaty's</a>
|
---|
95 | <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
|
---|
96 | <span class="navbar-toggler-icon"></span>
|
---|
97 | </button>
|
---|
98 | <div class="collapse navbar-collapse" id="mynavbar">
|
---|
99 | <ul class="navbar-nav me-auto">
|
---|
100 | <li class="nav-item">
|
---|
101 | <a class="nav-link" href="/menija">Менија</a>
|
---|
102 | </li>
|
---|
103 | <li class="nav-item">
|
---|
104 | <a class="nav-link" href="/obroci">Оброци</a>
|
---|
105 | </li>
|
---|
106 | <li class="nav-item">
|
---|
107 | <a class="nav-link" href="/rezervacii">Резервации</a>
|
---|
108 | </li>
|
---|
109 | </ul>
|
---|
110 | <form class="d-flex">
|
---|
111 | <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
|
---|
112 | <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
|
---|
113 | <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
|
---|
114 | <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
|
---|
115 | <li class="lists">
|
---|
116 | <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
|
---|
117 | <span class="accountnamestyle" sec:authentication="name"></span>
|
---|
118 | </i>
|
---|
119 | </li>
|
---|
120 | </form>
|
---|
121 | </div>
|
---|
122 | </div>
|
---|
123 | </nav>
|
---|
124 |
|
---|
125 | <div class="d-flex text-center justify-content-center">
|
---|
126 | <div class="width1 bg-dark">
|
---|
127 | <form method="POST" th:action="@{'/obroci/{id}' (id=${obrok?.id})}">
|
---|
128 | <h1>Додади нов оброк</h1>
|
---|
129 |
|
---|
130 | <div class="form-group mb-3">
|
---|
131 | <label for="f1">Име:</label>
|
---|
132 | <input type="text" class="form-control form-control-lg"
|
---|
133 | id="f1"
|
---|
134 | name="ime"
|
---|
135 | th:value="${obrok?.ime}"
|
---|
136 | required>
|
---|
137 | </div>
|
---|
138 | <div class="form-group mb-3">
|
---|
139 | <label for="f2">Опис:</label>
|
---|
140 | <input type="text" class="form-control form-control-lg"
|
---|
141 | id="f2"
|
---|
142 | name="opis"
|
---|
143 | th:value="${obrok?.opis}"
|
---|
144 | required>
|
---|
145 | </div>
|
---|
146 | <div class="form-group mb-3">
|
---|
147 | <label>Мени:</label><br/>
|
---|
148 | <select id="f3" name="meniId" class="form-control-lg">
|
---|
149 | <option th:each="meni: ${menija}" th:value="${meni.id}" th:text="${meni.restoran.ime} + '(' + ${meni.tip.ime} +')'"> [meni_id]</option>
|
---|
150 | </select>
|
---|
151 | </div>
|
---|
152 |
|
---|
153 | <button id="submit" class="btn btn-info">Додади</button>
|
---|
154 | <a id="back" href="/obroci" type="button" class="btn btn-primary">Назад до оброци</a>
|
---|
155 | </form>
|
---|
156 | </div>
|
---|
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> |
---|