Changeset 1e7126f for src/main/resources/templates/myTickets.html
- Timestamp:
- 08/24/23 02:28:14 (16 months ago)
- Branches:
- master
- Children:
- bcb4acc
- Parents:
- 40935d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.