basic extensions
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
<form th:action="@{/camp/registration/correct}" method="post" th:object="${bean}" th:if="${bean}">
|
||||
<input type="hidden" th:field="*{pkRegistration}" />
|
||||
<div class="row g-3">
|
||||
|
||||
<div class="col-sm-3">Vorname</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('forename')}" th:errors="*{forename}" class="text-danger"></span> <input type="text" th:field="*{forename}" class="form-control" />
|
||||
@ -28,6 +29,48 @@
|
||||
<option th:each="s : ${sexes}" th:value="${s}" th:text="${s}"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Alter</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('fkAge')}" th:errors="*{fkAge}" class="text-danger"></span>
|
||||
<select th:field="*{fkAge}" class="form-select">
|
||||
<option th:each="a : ${ages}" th:value="${a.pkAge}" th:label="${a.name} + ', ' + ${a.price} + ' € / Tag'"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Barrierefrei</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('barrierFree')}" th:errors="*{barrierFree}" class="text-danger"></span>
|
||||
<select th:field="*{barrierFree}" class="form-select">
|
||||
<option value="false">Nein</option>
|
||||
<option value="true">Ja</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Spezielle Ernährung (Allergien, Unverträglichkeiten)</div>
|
||||
<div class="col-sm-9">
|
||||
<textarea th:field="*{nutrition}" class="form-control"></textarea>
|
||||
</div>
|
||||
<div class="col-sm-3">Besonderheiten / Krankheiten</div>
|
||||
<div class="col-sm-9">
|
||||
<textarea th:field="*{diseases}" class="form-control"></textarea>
|
||||
</div>
|
||||
<div class="col-sm-3">Biete Plätze zum Mitfahren</div>
|
||||
<div class="col-sm-9">
|
||||
<input th:field="*{driverProvidePlaces}" type="number" min="0" max="8" class="form-control" />
|
||||
</div>
|
||||
<div class="col-sm-3">Benötige eine Mitfahrgelegenheit</div>
|
||||
<div class="col-sm-9">
|
||||
<input id="wantPlaceInCar" type="checkbox" name="active" th:checked="*{wantPlaceInCar}" class="form-check-input" />
|
||||
<label class="form-check-label" for="wantPlaceInCar">Ja, brauche ich</label>
|
||||
</div>
|
||||
<div class="col-sm-3">Besonderheiten / Krankheiten</div>
|
||||
<div class="col-sm-9">
|
||||
<textarea th:field="*{diseases}" class="form-control"></textarea>
|
||||
</div>
|
||||
<div class="col-sm-3">Finanzierungsunterstützung</div>
|
||||
<div class="col-sm-9">
|
||||
<input id="requirePayment" type="checkbox" name="active" th:checked="*{requirePayment}" class="form-check-input" />
|
||||
<label class="form-check-label" for="requirePayment">Ja, brauche ich</label>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-9">
|
||||
<button type="submit" class="btn btn-outline-success">Korrigeren</button>
|
||||
|
@ -40,6 +40,7 @@
|
||||
<div id="new" class="tabpanel">
|
||||
<form th:action="@{/camp/registration/submit}" method="post" th:object="${bean}">
|
||||
<div class="row g-3">
|
||||
|
||||
<div class="col-sm-3">Vorname</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('forename')}" th:errors="*{forename}" class="text-danger"></span> <input type="text" th:field="*{forename}" class="form-control" />
|
||||
@ -55,6 +56,60 @@
|
||||
<option th:each="s : ${sexes}" th:value="${s}" th:text="${s}"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Alter</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('fkAge')}" th:errors="*{fkAge}" class="text-danger"></span>
|
||||
<select th:field="*{fkAge}" class="form-select">
|
||||
<option th:each="a : ${ages}" th:value="${a.pkAge}" th:label="${a.name} + ', ' + ${a.price} + ' € / Tag'"></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Welche Tage</div>
|
||||
<div class="col-sm-9">
|
||||
<input id="day0" type="checkbox" name="active" th:checked="*{day0}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day0">Mittwoch</label>
|
||||
<input id="day1" type="checkbox" name="active" th:checked="*{day1}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day1">Donnerstag</label>
|
||||
<input id="day2" type="checkbox" name="active" th:checked="*{day2}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day2">Freitag</label>
|
||||
<input id="day3" type="checkbox" name="active" th:checked="*{day3}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day3">Sonnabend</label>
|
||||
<input id="day4" type="checkbox" name="active" th:checked="*{day4}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day4">Sonntag</label>
|
||||
<input id="day5" type="checkbox" name="active" th:checked="*{day5}" class="form-check-input" />
|
||||
<label class="form-check-label" for="day5">Montag</label>
|
||||
<span id="calcprice"></span>
|
||||
</div>
|
||||
<div class="col-sm-3">Barrierefrei</div>
|
||||
<div class="col-sm-9">
|
||||
<span th:if="${#fields.hasErrors('barrierFree')}" th:errors="*{barrierFree}" class="text-danger"></span>
|
||||
<select th:field="*{barrierFree}" class="form-select">
|
||||
<option value="false">Nein</option>
|
||||
<option value="true">Ja</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-3">Spezielle Ernährung (Allergien, Unverträglichkeiten)</div>
|
||||
<div class="col-sm-9">
|
||||
<textarea th:field="*{nutrition}" class="form-control"></textarea>
|
||||
</div>
|
||||
<div class="col-sm-3">Biete Plätze zum Mitfahren</div>
|
||||
<div class="col-sm-9">
|
||||
<input th:field="*{driverProvidePlaces}" type="number" min="0" max="8" class="form-control" />
|
||||
</div>
|
||||
<div class="col-sm-3">Benötige eine Mitfahrgelegenheit</div>
|
||||
<div class="col-sm-9">
|
||||
<input id="wantPlaceInCar" type="checkbox" name="active" th:checked="*{wantPlaceInCar}" class="form-check-input" />
|
||||
<label class="form-check-label" for="wantPlaceInCar">Ja, brauche ich</label>
|
||||
</div>
|
||||
<div class="col-sm-3">Besonderheiten / Krankheiten</div>
|
||||
<div class="col-sm-9">
|
||||
<textarea th:field="*{diseases}" class="form-control"></textarea>
|
||||
</div>
|
||||
<div class="col-sm-3">Finanzierungsunterstützung</div>
|
||||
<div class="col-sm-9">
|
||||
<input id="requirePayment" type="checkbox" name="active" th:checked="*{requirePayment}" class="form-check-input" />
|
||||
<label class="form-check-label" for="requirePayment">Ja, brauche ich</label>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3"></div>
|
||||
<div class="col-sm-9">
|
||||
<button type="submit" class="btn btn-outline-success">Speichern</button>
|
||||
|
Reference in New Issue
Block a user