source: source/MovieZilla-master/src/main/resources/templates/reserve.html@ fc7ec52

Last change on this file since fc7ec52 was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 7.8 KB
Line 
1<div xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html" xmlns:sec="http://www.w3.org/1999/xhtml">
2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
3 <head>
4 <title>Reserve</title>
5 <link th:href="@{/styles/movieCSS/main.css}" rel="stylesheet" />
6 <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
7 <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
8 <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
9 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
10 <style>
11
12 </style>
13 </head>
14 <body>
15<!-- <header th:replace="fragments/header"/>-->
16 <section class="jumbotron text-center" xmlns:th="http://www.thymeleaf.org">
17 <div class="container container-dark">
18 <h1 style="font-size:1.5rem" class="jumbotron-heading ">RESERVED SEATS FOR THIS PROJECTION</h1>
19 </div>
20 </section>
21 <main class="main main-dark bg-light">
22 <div class="content">
23 <!-- Page content -->
24 <div class="header-one">
25 </div>
26 <div class="centered">
27 <table class="table table-bordered table-light bg-light table-striped" style="font-size:1.8rem">
28 <thead>
29 <tr>
30 <td>Number</td>
31 <td>Auditorium Name</td>
32 <td>Capacity</td>
33 <td>Firm Name</td>
34 <td>Firm Address</td>
35
36 </tr>
37 </thead>
38 <tbody>
39 <tr th:each="seats : ${seats11}">
40 <td th:text="${seats.getSeat_number()}"/>
41 <td th:text="${seats.getSeatCompositeKey().getAuditorium().getAuditorium_name()}"/>
42 <td th:text="${seats.getSeatCompositeKey().getAuditorium().getAuditorium_capacity()}"/>
43 <td th:text="${seats.getSeatCompositeKey().getAuditorium().getFirm().getFirm_name()}"/>
44 <td th:text="${seats.getSeatCompositeKey().getAuditorium().getFirm().getFirm_adress()}"/>
45 </tr>
46 </tbody>
47 </table>
48 </div>
49 </div>
50
51 <div class="row">
52 <div class="col-md-1">
53 <form action="/reserve/projection/add" method="POST">
54
55 <div class="form-group" />
56 <label>Auditorium</label>
57 <select name="auditorium_id" class="form-control" autocomplete="off">
58 <option th:if="${auditorium} != null"
59 th:selected="${auditorium.getAuditorium_id() != null}"
60 th:each="auditorium : ${auditorium}"
61 th:value="${auditorium.getAuditorium_id()}"
62 th:text="${auditorium.getAuditorium_name()}">
63 </option>
64 <option th:if="${auditorium} == null"
65 th:each="auditorium : ${auditorium}"
66 th:value="${auditorium.getAuditorium_id()}"
67 th:text="${auditorium.getAuditorium_name()}">
68 </option>
69 </select>
70 </div>
71
72 <div class="form-group">
73 <label>Payment Type</label >
74 <select name="payment_type_id" class="form-control" autocomplete="off">
75 <option th:if="${paymentType} != null"
76 th:selected="${paymentType.getPayment_type_id() != null}"
77 th:each="paymentType : ${paymentType}"
78 th:value="${paymentType.getPayment_type_id()}"
79 th:text="${paymentType.getPayment_type()}">
80 </option>
81 <option th:if="${paymentType} == null"
82 th:each="paymentType : ${paymentType}"
83 th:value="${paymentType.getPayment_type_id()}"
84 th:text="${paymentType.getPayment_type()}">
85 </option>
86 </select>
87
88 <label>Client</label >
89 <select name="user_id" class="form-control" autocomplete="off">
90 <option th:if="${client} != null"
91 th:selected="${client.getClientCompositeKey().getUser().getUser_id() != null}"
92 th:each="client : ${client}"
93 th:value="${client.getClientCompositeKey().getUser().getUser_id()}"
94 th:text="${client.getClientCompositeKey().getUser().getUser_name()}">
95 </option>
96 <option th:if="${client} == null"
97 th:each="client : ${client}"
98 th:value="${client.getClientCompositeKey().getUser().getUser_id()}"
99 th:text="${client.getClientCompositeKey().getUser().getUser_name()}">
100 </option>
101 </select>
102
103 <label>Projection ID</label>
104 <select name="projection_id" class="form-control" autocomplete="off">
105 <option th:if="${projections} != null"
106 th:selected="${projections.getProjection_id() != null}"
107 th:each="projections : ${projections}"
108 th:value="${projections.getProjection_id()}"
109 th:text="${projections.getProjection_id()}">
110 </option>
111 <option th:if="${projections} == null"
112 th:each="projections : ${projections}"
113 th:value="${projections.getProjection_id()}"
114 th:text="${projections.getProjection_id()}">
115 </option>
116 </select>
117
118 <label>Seat</label>
119 <select name="seat_id" class="form-control" autocomplete="off">
120 <option th:if="${seatsAll != null}"
121 th:selected="${seatsAll.getSeatCompositeKey().getSeat_id() != null &&
122 seatsAll.getSeatCompositeKey().getAuditorium.getAuditorium_id() != null
123 }"
124 th:each="seatsAll : ${seatsAll}"
125 th:value="${seatsAll.getSeatCompositeKey().getSeat_id()}"
126 th:text="${seatsAll.getSeatCompositeKey().getSeat_id()}" autocomplete="off">
127 </option>
128 <option th:if="${seatsAll} == null"
129 th:each="seatsAll: ${seatsAll}"
130 th:value="${seatsAll.getSeatCompositeKey().getSeat_id()}"
131 th:text="${seatsAll.getSeatCompositeKey().getSeat_id()}" autocomplete="off">
132 </option>
133 </select>
134 </div>
135 <button id="submit" type="submit" class="btn btn-primary">Submit</button>
136 <a type="button" class="btn btn-primary" href="/projections">Back</a>
137 </form>
138 </div>
139</div>
140
141</main><footer th:replace="fragments/footer"/>
142<!-- Footer -->
143<!---->
144</body>
145</html>
146</div>
Note: See TracBrowser for help on using the repository browser.