source: src/main/resources/templates/form.html@ b3f2adb

Last change on this file since b3f2adb was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago

Adding project to repo

  • Property mode set to 100644
File size: 5.7 KB
Line 
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 footer {
31 margin-top: auto;
32 padding: 15px 0;
33 color: white;
34 background: #262626;
35 }
36
37 footer li {
38 float: left;
39 padding: 0 10px;
40 list-style: none;
41 }
42
43 footer a {
44 color: white;
45 }
46
47 footer p {
48 float: right;
49 }
50
51 .linkovi {
52 text-decoration: none;
53 color: white;
54 padding: 0 10px;
55 }
56
57 .lists {
58 list-style-type: none;
59 }
60
61 .accountnamestyle{
62 list-style-type: none;
63 text-decoration: none;
64 color: orangered;
65 padding: 0 10px;
66 margin-right: 5px;
67 }
68 .usericonstyle{
69 margin-left: 10px;
70 }
71
72 </style>
73
74
75</head>
76<body>
77
78<nav class="navbar navbar-expand-sm navbar-dark bg-dark">
79 <div class="container-fluid">
80 <a class="navbar-brand" href="/">Eaty's</a>
81 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#mynavbar">
82 <span class="navbar-toggler-icon"></span>
83 </button>
84 <div class="collapse navbar-collapse" id="mynavbar">
85 <ul class="navbar-nav me-auto">
86 <li class="nav-item">
87 <a class="nav-link" href="/menija">Менија</a>
88 </li>
89 <li class="nav-item">
90 <a class="nav-link" href="/obroci">Оброци</a>
91 </li>
92 <li class="nav-item">
93 <a class="nav-link" href="/rezervacii">Резервации</a>
94 </li>
95 </ul>
96 <form class="d-flex">
97 <li class="lists"><a class="linkovi" href="/shopping-cart"><i class="fa fa-shopping-cart fa-2x" aria-hidden="true"></i></a></li>
98 <li class="lists"><a class="linkovi" href="/register">Регистрација</a></li>
99 <li class="lists"><a class="linkovi" sec:authorize="!isAuthenticated()" href="/login">Логин</a></li>
100 <li class="lists"><a class="linkovi" sec:authorize="isAuthenticated()" href="/logout">Одјава</a></li>
101 <li class="lists">
102 <i class="fa fa-user-o usericonstyle" sec:authorize="isAuthenticated()" aria-hidden="true">
103 <span class="accountnamestyle" sec:authentication="name"></span>
104 </i>
105 </li>
106 </form>
107 </div>
108 </div>
109</nav>
110
111<div class="d-flex text-center justify-content-center">
112 <div class="width1 bg-dark">
113 <form method="POST" th:action="@{'/restorani/{id}' (id=${restoran?.id})}">
114 <h1>Додади нов ресторан</h1>
115 <br>
116 <div class="form-group mb-3">
117 <label for="f1">Име:</label>
118 <input type="text" class="form-control form-control-lg"
119 id="f1"
120 name="ime"
121 th:value="${restoran?.ime}"
122 required>
123 </div>
124 <div class="form-group mb-3">
125 <label for="f2">Рејтинг:</label>
126 <input type="number" class="form-control form-control-lg"
127 id="f2"
128 name="rejting"
129 th:value="${restoran?.rejting}"
130 required>
131 </div>
132 <div class="form-group mb-3">
133 <label for="f3">Адреса:</label>
134 <input type="text" class="form-control form-control-lg"
135 id="f3"
136 name="adresa"
137 th:value="${restoran?.adresa}"
138 required>
139 </div>
140 <div class="form-group mb-3">
141 <label>Менаџер:</label><br/>
142 <select id="f4" name="menadzerId" class="form-control-lg">
143 <option th:each="menadzer: ${menadzeri}" th:value="${menadzer.id}" th:text="${menadzer.ime}"> [menadzer_id]</option>
144 </select>
145 </div>
146 <br>
147 <button id="submit" type="submit" class="btn btn-info">Додади</button>
148 <a id="back" href="/restorani" type="button" class="btn btn-primary">Назад до ресторани</a>
149 </form>
150 </div>
151</div>
152
153<footer>
154 <div class="container">
155 <div class="row">
156 <div class="col-md-12">
157 <ul>
158 <li><a href="/">За Нас</a></li>
159 <li><a href="/">ЧПП</a></li>
160 <li><a href="/">Контакт</a></li>
161 <li><a href="/"></a></li>
162 <p>&copy; Сите права задржани. <a href="/">Eaty's Скопје</a></p>
163 </ul>
164 </div>
165 </div>
166 </div>
167</footer>
168
169</body>
170</html>
Note: See TracBrowser for help on using the repository browser.