added required price, see #6
This commit is contained in:
		| @@ -43,6 +43,10 @@ | ||||
| 											<th>Freizeitpreis</th> | ||||
| 											<td th:text="${booker.price}" /> | ||||
| 										</tr> | ||||
| 										<tr th:if="${booker.requiredPrice}"> | ||||
| 											<th>davon für <span th:text="${booker.name}"></span></th> | ||||
| 											<td th:text="${#numbers.formatDecimal(booker.requiredPrice, 1, 2) + ' €'}"></td> | ||||
| 										</tr> | ||||
| 										<tr> | ||||
| 											<th>Kontostand</th> | ||||
| 											<td><span th:text="${#numbers.formatDecimal(booker.paid, 1, 2) + ' €'}" th:if="${booker.paid != null}"></span></td> | ||||
|   | ||||
| @@ -44,6 +44,7 @@ | ||||
|           <div class="row mb-2"> | ||||
|             <label for="inputBirthdate" class="col-sm-2 col-form-label">Geburtstag</label> | ||||
|             <div class="col-sm-4"> | ||||
|             	<span class="error" th:each="error : ${#fields.errors('birthdate')}">[[${error}]]<br /></span> | ||||
|               <input type="date" th:field="*{birthdate}" class="inputBirthdate form-control" /> | ||||
|             </div> | ||||
|             <label for="inputSex" class="col-sm-2 col-form-label">Geschlecht</label> | ||||
| @@ -93,6 +94,16 @@ | ||||
|               <textarea th:field="*{comment}" class="inputComment form-control"></textarea> | ||||
|             </div> | ||||
|           </div> | ||||
|           <div class="row mb-2"> | ||||
|           	<label for="inputRequiredPrice" class="col-sm-2 col-form-label">individueller Preis</label> | ||||
|           	<div class="col-sm-5"> | ||||
|             	<span class="error" th:each="error : ${#fields.errors('requiredPrice')}">[[${error}]]<br /></span> | ||||
|           		<input type="number" th:field="*{requiredPrice}" class="inputRequiredPrice form-control" /> | ||||
|           	</div> | ||||
|           	<div class="col-sm-5 d-flex align-items-center"> | ||||
|           		von offiziell <span th:utext="${campPrice}"></span> | ||||
|           	</div> | ||||
|           </div> | ||||
|           <div class="row mb-2"> | ||||
|             <label for="outputAnno" class="col-sm-2 col-form-label">Anmerkungen</label> | ||||
|             <div class="col-sm-10"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user