2023-11-05 09:38:25 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns:th="http://www.thymeleaf.org"
|
|
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security"
|
|
|
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<link rel="stylesheet" th:href="@{/resources/css/style.css}">
|
|
|
|
<title th:text="Aufträge">Aufträge</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="topnav"> <!-- später für css -->
|
|
|
|
<a th:href="@{/}" th:text="Home">Home</a>
|
|
|
|
<a th:href="@{/catalog}" th:text="Katalog">Katalog</a>
|
2023-11-07 17:39:14 +01:00
|
|
|
<a th:href="@{/event}" th:text="Eventplaner">Eventplaner</a>
|
2023-11-05 09:38:25 +01:00
|
|
|
<a th:href="@{/orders}" th:text="Aufträge">Aufträge</a>
|
|
|
|
<!--<a href="#account">Mein Konto</a>-->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
2023-11-05 17:05:56 +01:00
|
|
|
<h1>Auftragsliste</h1>
|
2023-11-05 09:38:25 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div> <!--th:unless"${cart.empty}"-->
|
|
|
|
<table style="width:100%; text-align:left">
|
|
|
|
<tr>
|
2023-11-05 17:05:56 +01:00
|
|
|
<th style="width:10%">Von</th>
|
|
|
|
<th style="width:10%">Bis</th>
|
|
|
|
<th style="width:15%">Kunde</th>
|
|
|
|
<th style="width:30%">Produktdetails</th>
|
|
|
|
<th style="width:10%">Rechnung</th>
|
2023-11-05 09:38:25 +01:00
|
|
|
<th>Bezahlt</th>
|
|
|
|
<th>Preis</th>
|
2023-11-07 17:39:14 +01:00
|
|
|
<th></th>
|
2023-11-05 09:38:25 +01:00
|
|
|
</tr>
|
2023-11-05 16:41:22 +01:00
|
|
|
<tr th:each="order : ${orders}">
|
2023-11-05 15:36:46 +01:00
|
|
|
<td th:text="${order.getFormattedStart()}">
|
|
|
|
<td th:text="${order.getFormattedFinish()}">
|
|
|
|
<td th:text="BeispielKunde"/>
|
2023-11-05 09:38:25 +01:00
|
|
|
<td>
|
2023-11-05 17:05:56 +01:00
|
|
|
<div>
|
|
|
|
<a href="#productDetails" th:text="${order.getOrderType()}"/>
|
|
|
|
<ul th:each="product : ${order.getFormattedProducts()}">
|
|
|
|
<li th:text="${product}"/>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2023-11-05 09:38:25 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
2023-11-05 15:36:46 +01:00
|
|
|
<div th:if="${order.invoiceAvailable()}">
|
|
|
|
<a href="#invoice">Rechnung</a>
|
|
|
|
</div>
|
|
|
|
<div th:unless="${order.invoiceAvailable()}">
|
|
|
|
<span>Keine Rechnung verfügbar</span>
|
|
|
|
</div>
|
2023-11-05 09:38:25 +01:00
|
|
|
</td>
|
|
|
|
<td>☒</td> <!--von Admin bearbeitbar-->
|
|
|
|
<td>
|
2023-11-05 15:36:46 +01:00
|
|
|
<th:block th:text="${order.getTotalCost()}"/>
|
|
|
|
<th:block th:text="€"/>
|
2023-11-05 09:38:25 +01:00
|
|
|
</td>
|
2023-11-05 16:41:22 +01:00
|
|
|
<td>
|
|
|
|
<form method="post" th:action="@{/orders/remove}">
|
|
|
|
<input type="hidden" name="orderID" value="0" th:value="${order.getId()}"/>
|
|
|
|
<input type="submit" value="remove" th:value="Entfernen"/>
|
|
|
|
</form>
|
2023-11-05 09:38:25 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-11-05 12:33:43 +01:00
|
|
|
|
|
|
|
<span>
|
2023-11-05 15:36:46 +01:00
|
|
|
<th:block th:text="Insgesamt "/>
|
2023-11-05 12:33:43 +01:00
|
|
|
<th:block th:text="${total}"/>
|
2023-11-05 15:36:46 +01:00
|
|
|
<th:block th:text=" Aufträge"/>
|
2023-11-05 12:33:43 +01:00
|
|
|
</span>
|
2023-11-05 09:38:25 +01:00
|
|
|
</body>
|
|
|
|
|
|
|
|
<footer style="bottom: 0; position: absolute;">
|
2023-11-05 17:05:56 +01:00
|
|
|
<p>© Hannes Wurst @ Mampf GmbH</p>
|
|
|
|
<p>
|
2023-11-05 09:38:25 +01:00
|
|
|
<a href="mailto:catering@mampf.com">catering@mampf.com</a>
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
</html>
|