swt23w23/src/main/resources/templates/orders.html

84 lines
2.4 KiB
HTML
Raw Normal View History

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>
<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>
<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>
<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>
<th></th>
2023-11-05 09:38:25 +01:00
</tr>
2023-11-05 16:41:22 +01:00
<tr th:each="order : ${orders}">
<td th:text="${order.getFormattedStart()}">
<td th:text="${order.getFormattedFinish()}">
<td th:text="BeispielKunde"/>
2023-11-05 09:38:25 +01:00
<td>
<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>
<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>&#9746</td> <!--von Admin bearbeitbar-->
<td>
<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>
<span>
<th:block th:text="Insgesamt "/>
<th:block th:text="${total}"/>
<th:block th:text=" Aufträge"/>
</span>
2023-11-05 09:38:25 +01:00
</body>
<footer style="bottom: 0; position: absolute;">
<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>