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="Katalog">Katalog</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-12 00:46:47 +01:00
|
|
|
<h1>Katalog</h1>
|
2023-11-05 09:38:25 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<table style="width: 100%;">
|
|
|
|
<tr style="text-align: left;">
|
|
|
|
<th></th>
|
|
|
|
<th>Name</th>
|
|
|
|
<th>Mindestzeitraum</th>
|
|
|
|
<th>Basisausstattung</th>
|
|
|
|
<th>Preis ab</th>
|
|
|
|
</tr>
|
2023-11-09 23:46:55 +01:00
|
|
|
<tr th:each="catalogEntry : ${catalogEntries}">
|
2023-11-05 09:38:25 +01:00
|
|
|
<td>
|
|
|
|
**BILD**
|
|
|
|
</td>
|
2023-11-09 23:46:55 +01:00
|
|
|
<td th:text="${catalogEntry.getEventType()}">
|
|
|
|
<td th:text="${catalogEntry.getMinimumTimePeriod()}">h
|
2023-11-05 09:38:25 +01:00
|
|
|
<td>
|
2023-11-09 23:46:55 +01:00
|
|
|
<ul th:each="product : ${catalogEntry.getProducts()}">
|
|
|
|
<li th:text="${product}"/>
|
2023-11-05 09:38:25 +01:00
|
|
|
</ul>
|
|
|
|
</td>
|
2023-11-09 23:46:55 +01:00
|
|
|
<td th:text="${catalogEntry.getTotalCost()}">
|
2023-11-11 22:06:48 +01:00
|
|
|
<td>
|
|
|
|
<form method="post" th:action="@{/catalog/remove}">
|
|
|
|
<input type="hidden" name="catalogEntryID" th:value="${catalogEntry.getId()}">
|
|
|
|
<button type="submit">Entfernen</button>
|
|
|
|
</form>
|
|
|
|
</td>
|
2023-11-05 09:38:25 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2023-11-09 20:21:34 +01:00
|
|
|
<div>
|
|
|
|
<form th:action="@{/catalog_editor}">
|
|
|
|
<button type="submit">Hinzufügen</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2023-11-09 23:46:55 +01:00
|
|
|
<div>
|
|
|
|
<form th:action="@{/catalog_editor}">
|
|
|
|
<button type="submit">Hinzufügen</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2023-11-11 22:06:48 +01:00
|
|
|
<div>
|
|
|
|
<form th:action="@{/catalog_editor}">
|
|
|
|
<button type="submit">Hinzufügen</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2023-11-12 00:46:47 +01:00
|
|
|
<div>
|
|
|
|
<form th:action="@{/catalog_editor}">
|
|
|
|
<button type="submit">Hinzufügen</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2023-11-05 09:38:25 +01:00
|
|
|
<div>
|
|
|
|
<button type="button">Hinzufügen</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
<footer style="bottom: 0; position: absolute;">
|
|
|
|
<p>© Hannes Wurst @ Mampf GmbH</p>
|
|
|
|
<p>
|
|
|
|
<a href="mailto:catering@mampf.com">catering@mampf.com</a>
|
|
|
|
</p>
|
|
|
|
</footer>
|
|
|
|
</html>
|