still buggy on rejecting people and loading old bookings
This commit is contained in:
		| @@ -356,6 +356,12 @@ div { | ||||
| 	border: 1px solid black; | ||||
| } | ||||
|  | ||||
| .framed-pink { | ||||
| 	background: linear-gradient(to bottom right, #9141ac, #613583); | ||||
| 	color: #9141ac; | ||||
| 	border: 1px solid #613583; | ||||
| } | ||||
|  | ||||
| .nomaxwidth { | ||||
| 	max-width: none !important; | ||||
| } | ||||
|   | ||||
| @@ -36,8 +36,8 @@ | ||||
| 											<td th:text="${#temporals.format(booker.bookingDate, 'dd.MM.yyyy')}"></td> | ||||
| 										</tr> | ||||
| 										<tr> | ||||
| 											<th>Bestätigt</th> | ||||
| 											<td th:text="${booker.accept == null ? '' : (booker.accept ? 'Ja' : 'abgelehnt')}"></td> | ||||
| 											<th>Status</th> | ||||
| 											<td th:text="${booker.progress}"></td> | ||||
| 										</tr> | ||||
| 										<tr> | ||||
| 											<th>Freizeitpreis</th> | ||||
|   | ||||
| @@ -18,7 +18,7 @@ | ||||
| 								<th>Freizeit</th> | ||||
| 								<th>Rolle</th> | ||||
| 								<th>Kontostand</th> | ||||
| 								<th>Angemeldet</th> | ||||
| 								<th>Status</th> | ||||
| 								<th>Bestätigt</th> | ||||
| 							</tr> | ||||
| 						</thead> | ||||
| @@ -48,7 +48,7 @@ | ||||
| 										</form> | ||||
| 									</td> | ||||
| 									<td class="middled" th:text="${#temporals.format(b.bookingDate, 'dd.MM.yyyy')}"></td> | ||||
| 									<td class="middled" th:text="${b.accept == null ? '' : (b.accept ? 'Ja' : 'abgelehnt')}"></td> | ||||
| 									<td class="middled" th:text="${b.progress}"></td> | ||||
| 								</tr> | ||||
| 							</th:block> | ||||
| 						</tbody> | ||||
|   | ||||
| @@ -63,7 +63,7 @@ | ||||
| 											<th>Geschlecht</th> | ||||
| 											<th>Rolle</th> | ||||
| 											<th>Kontostand</th> | ||||
| 											<th>Angemeldet</th> | ||||
| 											<th>Status</th> | ||||
| 											<th>Bestätigt</th> | ||||
| 										</tr> | ||||
| 									</thead> | ||||
| @@ -75,7 +75,7 @@ | ||||
| 												<td th:text="${b.role}"></td> | ||||
| 												<td><span th:text="${#numbers.formatDecimal(b.paid, 1, 2) + ' €'}" th:if="${b.paid != null}"></span></td> | ||||
| 												<td th:text="${#temporals.format(b.bookingDate, 'dd.MM.yyyy')}"></td> | ||||
| 												<td th:text="${b.accept == null ? '' : (b.accept ? 'Ja' : 'abgelehnt')}"></td> | ||||
| 												<td th:text="${b.progress}"></td> | ||||
| 											</tr> | ||||
| 										</th:block> | ||||
| 									</tbody> | ||||
|   | ||||
| @@ -39,7 +39,7 @@ | ||||
| 							<div th:text="${p.camprolle}"></div></td> | ||||
| 						<td><div th:text="${#temporals.format(p.birthDate, 'dd.MM.yyyy')}"></div> | ||||
| 							<div th:text="${p.getAge(campStartDate)} + ' Jahre'"></div></td> | ||||
| 						<td th:text="${p.accept}"></td> | ||||
| 						<td th:text="${p.progress}"></td> | ||||
| 						<td th:text="${#temporals.format(p.created, 'dd.MM.yyyy HH:mm')}"></td> | ||||
| 						<td><span th:text="${p.consentCatalogPhoto ? 'ja' : 'nein'}" th:if="${p.consentCatalogPhoto}"></span></td> | ||||
| 						<td th:text="${p.comment}"></td> | ||||
|   | ||||
| @@ -113,12 +113,9 @@ | ||||
|           <div class="row mb-2"> | ||||
|             <label for="inputAccept" class="col-sm-2 col-form-label">Status</label> | ||||
|             <div class="col-sm-10"> | ||||
|               <div class="form-group"> | ||||
|                 <input type="radio" class="btn-check" id="accept1" name="accept1" value="" th:field="*{accept}" /> <label class="btn btn-outline-primary" for="accept1"><i | ||||
|                   class="fas fa-question"></i> offen</label> <input type="radio" class="btn-check" id="accept2" name="accept2" value="true" th:field="*{accept}" /> <label class="btn btn-outline-success" | ||||
|                   for="accept2"><i class="fas fa-check"></i> bestätigt</label> <input type="radio" class="btn-check" id="accept3" name="accept3" value="false" th:field="*{accept}" /> <label | ||||
|                   class="btn btn-outline-danger" for="accept3"><i class="fas fa-ban"></i> abgelehnt</label> | ||||
|               </div> | ||||
|               <select th:field="*{progress}"> | ||||
|               	<option th:each="p : ${progresses}" value="${p}"><th:block th:text="${p}"></th:block></option> | ||||
|               </select> | ||||
|             </div> | ||||
|           </div> | ||||
|           <div class="row mb-2"> | ||||
|   | ||||
| @@ -32,10 +32,10 @@ | ||||
| 			<div class="accordion" id="acc" th:if="${mybookings.size() > 0}" style="max-width: 800px; margin-left: auto; margin-right: auto"> | ||||
| 				<div class="accordion-item" th:each="b : ${mybookings}"> | ||||
| 					<h2 class="accordion-header" th:id="'acc-head-' + ${b.pk}" th:if="${b.pk}"> | ||||
| 						<button th:class="'accordion-button collapsed acc_' + ${b.isOver ? 'over' : b.accept}" type="button" data-bs-toggle="collapse" th:data-bs-target="'#acc-body-' + ${b.pk}" | ||||
| 						<button th:class="'accordion-button collapsed acc_' + ${b.isOver ? 'over' : b.progress == 'approved'}" type="button" data-bs-toggle="collapse" th:data-bs-target="'#acc-body-' + ${b.pk}" | ||||
| 							aria-expanded="true" th:aria-controls="'#acc-body-' + ${b.pk}"> | ||||
| 							<i class="fas fa-check framed framed-green" th:if="${b.accept}"></i> <i class="fas fa-ban framed framed-red" th:if="${b.accept} == false"></i> <i | ||||
| 								class="fas fa-question framed framed-orange" th:if="${b.accept} == null"></i> | ||||
| 							<i class="fas fa-check framed framed-green" th:if="${b.progress} == 'approved'"></i> <i class="fas fa-ban framed framed-red" th:if="${b.progress} == 'rejected'"></i> <i | ||||
| 								class="fas fa-question framed framed-orange" th:if="${b.progress} == 'requested'"></i> | ||||
| 								<span	th:text="${b.forename + ' ' + b.surname + ' für ' + b.campName + ' ' + #numbers.formatInteger(b.year, 4)}" class="headlinefont"></span> | ||||
| 						</button> | ||||
| 					</h2> | ||||
| @@ -62,7 +62,7 @@ | ||||
| 									</div> | ||||
| 								</div> | ||||
| 							</div> | ||||
| 							<div class="card" th:if="${b.accept}"> | ||||
| 							<div class="card" th:if="${b.progress} == 'approved'"> | ||||
| 								<div class="card-header">Dokumente</div> | ||||
| 								<div class="card-body"> | ||||
| 									<div class="container"> | ||||
| @@ -150,8 +150,8 @@ | ||||
| 							<div class="alert alert-primary" th:if="${b.created != null}"> | ||||
| 								angemeldet am <span th:text="${#temporals.format(b.created, 'dd.MM.yyyy')}"></span> von <span th:text="${b.subscriber}"></span> | ||||
| 							</div> | ||||
| 							<div th:class="'alert ' + ${b.accept ? 'alert-success' : 'alert-danger'}" th:if="${b.accept != null}"> | ||||
| 								<span th:text="${b.accept ? 'bestätigt' : 'abgelehnt'}"></span> von <span th:text="${b.registrator}"></span> | ||||
| 							<div th:class="'alert ' + ${b.progress} == 'approved' ? 'alert-success' : 'alert-danger'}" th:if="${b.progress} != 'requested'}"> | ||||
| 								<span th:text="${b.progress} == 'approved'">bestätigt</span><span th:text="${b.progress} == 'rejected'">abgelehnt</span> von <span th:text="${b.registrator}"></span> | ||||
| 							</div> | ||||
| 							<div class="alert alert-warning" th:if="${b.isOver}">Die Freizeit ist bereits vorbei.</div> | ||||
| 						</div> | ||||
|   | ||||
| @@ -1,17 +1,17 @@ | ||||
| <!DOCTYPE html> | ||||
| <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security"> | ||||
| <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security" data-bs-theme="light"> | ||||
| <head> | ||||
| <title>Camp Organizer 2</title> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||||
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/bootstrap/5.3.2/css/bootstrap.min.css} " /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/font-awesome/6.5.1/css/all.min.css} " /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/bootstrap/5.3.3/css/bootstrap.min.css} " /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/font-awesome/6.5.2/css/all.min.css} " /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/datatables/1.13.5/css/jquery.dataTables.min.css}" /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/webjars/select2/4.0.13/css/select2.min.css}" /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/css/style.css}" /> | ||||
| <link th:rel="stylesheet" type="text/css" media="all" th:href="@{/css/select2-bootstrap-5-theme.min.css}" /> | ||||
| <script th:src="@{/webjars/jquery/3.7.1/jquery.min.js}"></script> | ||||
| <script th:src="@{/webjars/bootstrap/5.3.2/js/bootstrap.bundle.min.js}"></script> | ||||
| <script th:src="@{/webjars/bootstrap/5.3.3/js/bootstrap.bundle.min.js}"></script> | ||||
| <script th:src="@{/webjars/datatables/1.13.5/js/jquery.dataTables.min.js}"></script> | ||||
| <script th:src="@{/webjars/select2/4.0.13/js/select2.full.min.js}"></script> | ||||
| <script th:src="@{/js/dataTables.de.js}"></script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user