Changeset 1e7126f for src/main/resources/templates
- Timestamp:
- 08/24/23 02:28:14 (15 months ago)
- Branches:
- master
- Children:
- bcb4acc
- Parents:
- 40935d3
- Location:
- src/main/resources/templates
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/templates/addDiscount.html
r40935d3 r1e7126f 1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>$Title$</title> 6 </head> 7 <body> 8 $END$ 9 </body> 10 </html> 1 <th:block xmlns:th="http://www.thymeleaf.org"> 2 <div style="color: white" class="container"> 3 <h1 class="jumbotron-heading">Додани нов попуст</h1> 4 <div class="row"> 5 <div class="col-md-5"> 6 <form action="/home/addD" method="POST"> 7 <div class="form-group"> 8 <label for="code">Код</label> 9 <input type="text" 10 class="form-control" 11 id="code" 12 name="code" 13 required 14 placeholder="внеси код"> 15 </div> 16 <div class="form-group"> 17 <label for="validity">Валиндост</label> 18 <input type="date" 19 class="form-control" 20 id="validity" 21 name="validity" 22 placeholder="Валидност"> 23 </div> 24 <div class="form-group"> 25 <label for="type">Тип</label> 26 <input type="text" 27 class="form-control" 28 id="type" 29 name="type" 30 placeholder="Тип"> 31 </div> 32 <div class="form-group"> 33 <label for="percent">Процент</label> 34 <input type="number" 35 class="form-control" 36 id="percent" 37 name="percent" 38 > 39 </div> 40 <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button> 41 </form> 42 </div> 43 44 </div> 45 46 </div> 47 48 </th:block> -
src/main/resources/templates/addProjection.html
r40935d3 r1e7126f 17 17 <div class="form-group"> 18 18 <label for="date_time_start">Почетен датум</label> 19 <input type="date "19 <input type="datetime-local" 20 20 class="form-control" 21 21 id="date_time_start" … … 25 25 <div class="form-group"> 26 26 <label for="date_time_end">Краен датум</label> 27 <input type="date "27 <input type="datetime-local" 28 28 class="form-control" 29 29 id="date_time_end" … … 41 41 </select> 42 42 </div> 43 43 <div class="form-group"> 44 <label>Сала</label> 45 <select name="id_room" id="pr" class="form-control"> 46 <option 47 th:each="pr : ${projection_rooms}" 48 th:value="${pr.id_room}" 49 th:text="${pr.projection_room_number} + '-' + ${pr.cinema.name}"> 50 </option> 51 </select> 52 </div> 53 <div class="form-group"> 54 <label>Попуст</label> 55 <select name="id_discount" id="f2" class="form-control"> 56 <option 57 th:each="d : ${discounts}" 58 th:value="${d.id_discount}" 59 th:text="${d.type} + '-' + ${d.percent}"> 60 </option> 61 </select> 62 </div> 44 63 <button style="background-color: #ff5019" id="submit" type="submit" class="btn btn-primary">Додади</button> 45 64 </form> -
src/main/resources/templates/films.html
r40935d3 r1e7126f 216 216 217 217 </div> 218 <div class="form-group"> 219 <label style="color: white;font-size: 20px;font-weight: bold">Избери Жарн:</label> 220 <select name="id_cinema" class="form-control" id="id_cinema"> 221 <option 222 th:selected="${genres.get(1)}" 223 th:each="genre : ${genres}" 224 th:value="${}" 225 th:text="${cinema.getName()}"> 226 </option> 227 </select> 228 229 </div> 218 230 <button class="button" type="submit">Filter</button> 219 231 </form> … … 223 235 <div th:if="${films.isEmpty()} == false" 224 236 th:each="film : ${films}" class="container"> 225 <div class="card" >237 <div class="card" style="margin-left: 2%;margin-bottom: 2%"> 226 238 <div class="imgBx"> 227 239 <img th:src="@{${film.getUrl()}}"/> -
src/main/resources/templates/fragments/header.html
r40935d3 r1e7126f 69 69 <li class="begin"><a href="/myTickets">Мои Карти</a></li> 70 70 </th:block> 71 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')"> 72 <li class="begin"><a href="/workers">Вработени</a></li> 73 </th:block> 74 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')"> 75 <li class="begin"><a href="/addProjection">Нова Проекција</a></li> 76 </th:block> 77 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')"> 78 <li class="begin"><a href="/addFilm">Нов Филм</a></li> 79 </th:block> 80 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')"> 81 <li class="begin"><a href="/addEvent">Нов Настан</a></li> 71 72 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')" th:if="${#request.getRemoteUser()}"> 73 <li class="nav-item dropdown" style="width: 20px"> 74 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 0"> 75 </a> 76 <div class="dropdown-menu" aria-labelledby="navbarDropdown"> 77 <a class="dropdown-item" href="/workers">Вработени</a> 78 <a class="dropdown-item" href="/addProjection">Нова Проекција</a> 79 <a class="dropdown-item" href="/addFilm">Нов Филм</a> 80 <a class="dropdown-item" href="/addEvent">Нов Настан</a> 81 <a class="dropdown-item" href="/addDiscount">Нов Попуст</a> 82 </div> 83 </li> 82 84 </th:block> 83 85 </ul> 84 86 <ul class="menu-right"> 85 87 <th:block sec:authorize="hasAuthority('ROLE_ADMIN')" th:if="${#request.getRemoteUser() != null}"> 88 <li class="reg"> 89 <a href="/profileWorker"> 90 <th:block th:text="${#request.getRemoteUser()}"></th:block> 91 </a> 92 </li> 93 </th:block> 94 <th:block sec:authorize="hasAuthority('ROLE_WORKER')" th:if="${#request.getRemoteUser() != null}"> 86 95 <li class="reg"> 87 96 <a href="/profileWorker"> -
src/main/resources/templates/myTickets.html
r40935d3 r1e7126f 29 29 <div class="row"> 30 30 <div class="col-12 mt-3" style="padding-left:100px;height:75%;"> 31 <div class="card" th:each="t icket : ${tickets}" style=" border-radius: 30px;width:92%;align-self:center">31 <div class="card" th:each="t : ${tickets}" style=" border-radius: 30px;width:92%;align-self:center; margin-bottom: 5%"> 32 32 <div class="card-horizontal" > 33 33 <div class="card-body"> … … 36 36 <div> 37 37 <span>Филм:</span> 38 <span th:text="${t icket.projection.film.name}"></span></div>38 <span th:text="${t.ticket.projection.film.name}"></span></div> 39 39 <div> 40 40 <span>Почеток на проекција: </span> 41 <span th:text="${t icket.projection.date_time_start}"></span></div>41 <span th:text="${t.ticket.projection.date_time_start}"></span></div> 42 42 <div> 43 43 <span>Крај на проекција: </span> 44 <span th:text="${t icket.projection.date_time_end}"></span></div>44 <span th:text="${t.ticket.projection.date_time_end}"></span></div> 45 45 </h4> 46 46 47 <p class="card-text" th:text="${t icket.projection.type_of_technology}"></p>48 <span>Број на седиште: </span><p class="card-text" th:text="${t icket.seat.seat_number}"></p>49 <span>Цена: </span><p class="card-text" th:text="${t icket.price}"></p>47 <p class="card-text" th:text="${t.ticket.projection.type_of_technology}"></p> 48 <span>Број на седиште: </span><p class="card-text" th:text="${t.ticket.seat.seat_number}"></p> 49 <span>Цена: </span><p class="card-text" th:text="${t.ticket.price}"></p> 50 50 </div> 51 51 </div> 52 52 <div class="card-footer" style="border-bottom-right-radius:30px;border-bottom-left-radius:30px"> 53 53 <small> 54 <form th:action="@{'/ home/getSeats/{id}' (id=${ticket.id_ticket})}"55 th:method=" GET">56 < --button th:if="${ticket.projection.date_time_start != null and #dates.isBefore(java.time.LocalDateTime.of(ticket.projection.date_time_start, java.time.LocalTime.MIN).toInstant(java.time.ZoneOffset.UTC).toEpochMilli(), java.util.Date.from(java.time.LocalDate.now().atStartOfDay(java.time.ZoneId.systemDefault()).toInstant()).getTime())}" class="button" type="submit">Откажи</--button>54 <form th:action="@{'/cancelTicket/{id}' (id=${t.ticket.id_ticket})}" 55 th:method="POST"> 56 <button th:if="${t.canCancel}" class="button" type="submit">Откажи</button> 57 57 </form> 58 58
Note:
See TracChangeset
for help on using the changeset viewer.