source: src/main/resources/templates/myTickets.html@ 01a1ca6

Last change on this file since 01a1ca6 was 01a1ca6, checked in by DenicaKj <dkorvezir@…>, 23 months ago

added authorization

  • Property mode set to 100644
File size: 2.5 KB
Line 
1<style>
2 .card-horizontal {
3 display: flex;
4 flex: 1 1 auto;
5 }
6 .card {
7 transition: all .2s ease-in-out;
8 }
9 .card:hover {
10 transform: scale(1.05);
11 }
12 .button {
13 top:250px;
14 background-color: #ff5019;
15 border: none;
16 color: black;
17 padding: 10px 20px;
18 text-align: center;
19 text-decoration: none;
20 display: inline-block;
21 font-size: 16px;
22 border-radius: 20px;
23 }
24 .form-group{
25 width: 200px;
26 }
27</style>
28<div style="border-radius:30px" >
29 <div class="row">
30 <div class="col-12 mt-3" style="padding-left:100px;height:75%;">
31 <div class="card" th:each="ticket : ${tickets}" style=" border-radius: 30px;width:92%;align-self:center">
32 <div class="card-horizontal" >
33 <div class="card-body">
34
35 <h4 class="card-title" >
36 <div>
37 <span>Филм:</span>
38 <span th:text="${ticket.projection.film.name}"></span></div>
39 <div>
40 <span>Почеток на проекција: </span>
41 <span th:text="${ticket.projection.date_time_start}"></span></div>
42 <div>
43 <span>Крај на проекција: </span>
44 <span th:text="${ticket.projection.date_time_end}"></span></div>
45 </h4>
46
47 <p class="card-text" th:text="${ticket.projection.type_of_technology}"></p>
48 <span>Број на седиште: </span><p class="card-text" th:text="${ticket.seat.seat_number}"></p>
49 <span>Цена: </span><p class="card-text" th:text="${ticket.price}"></p>
50 </div>
51 </div>
52 <div class="card-footer" style="border-bottom-right-radius:30px;border-bottom-left-radius:30px">
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 ticket.projection.date_time_start.isBefore(java.time.LocalDate.now())}" class="button" type="submit">Откажи</--button>
57 </form>
58
59 </small>
60 </div>
61 </div>
62 </div>
63 </div>
64</div>
Note: See TracBrowser for help on using the repository browser.