2023-11-07 17:39:14 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org"
|
|
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
|
2023-11-13 20:09:39 +01:00
|
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
|
|
layout:decorate="~{layout.html(title='Event konfigurieren')}">
|
2023-11-07 20:53:31 +01:00
|
|
|
|
2023-11-13 20:09:39 +01:00
|
|
|
<body>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div layout:fragment="content">
|
2023-11-13 20:09:39 +01:00
|
|
|
<span th:text="'Typ: ' + ${orderType}"/>
|
|
|
|
|
|
|
|
<form th:action="@{/event/changeOrderType}" method="post">
|
2023-11-15 17:27:04 +01:00
|
|
|
<select class="form-select w-auto d-inline-block" name="orderType">
|
2023-11-13 20:09:39 +01:00
|
|
|
<option disabled="disabled" selected value="NULL" th:text="' -- Wählen Sie eine Option -- '"/>
|
|
|
|
<option th:value="'SE'" th:text="'Something else'"/>
|
|
|
|
<option th:value="'RaK'" th:text="Rent-a-Cook"/>
|
|
|
|
<option th:value="'EK'" th:text="Eventcatering"/>
|
|
|
|
<option th:value="'SN'" th:text="'Sushi Night'"/>
|
|
|
|
</select>
|
2023-11-15 17:27:04 +01:00
|
|
|
<button class="btn btn-primary" type="submit">Eventtypen ändern</button>
|
2023-11-13 20:09:39 +01:00
|
|
|
</form>
|
2023-11-07 20:53:31 +01:00
|
|
|
|
2023-11-15 17:27:04 +01:00
|
|
|
<table class="table">
|
2023-11-13 20:09:39 +01:00
|
|
|
<tr>
|
|
|
|
<th>Produkt</th>
|
|
|
|
<th>Anzahl</th>
|
|
|
|
</tr>
|
|
|
|
<tr th:each="key : ${items.keySet()}">
|
|
|
|
<td th:text="${key}">Sake Nigiri</td>
|
|
|
|
<td th:text="${items.get(key)}">200</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h4>Product hinzufügen</h4>
|
|
|
|
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="mb-4">
|
|
|
|
<form th:action="@{/event/addProduct}" th:object="${productForm}" method="post">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label">Produkt</label>
|
|
|
|
<input class="form-control" type="text" th:field="*{product}" placeholder="Produktname" required/>
|
|
|
|
</div>
|
2023-11-13 20:09:39 +01:00
|
|
|
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label">Anzahl</label>
|
|
|
|
<input class="form-control" type="number" th:field="*{number}" placeholder="Anzahl" min="1" required/>
|
|
|
|
</div>
|
2023-11-13 20:09:39 +01:00
|
|
|
|
2023-11-15 17:27:04 +01:00
|
|
|
<button class="btn btn-primary" type="submit">Submit</button>
|
2023-11-13 20:09:39 +01:00
|
|
|
</form>
|
2023-11-07 20:53:31 +01:00
|
|
|
</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
|
|
|
|
<form method="post" th:action="@{/event/checkout}">
|
|
|
|
<button class="btn btn-primary" type="submit">Kostenpflichtig bestellen</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
2023-11-07 17:39:14 +01:00
|
|
|
</html>
|