mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-06-23 05:33:41 +02:00
77 lines
2.7 KiB
HTML
77 lines
2.7 KiB
HTML
<!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>
|
|
<title>Basisevent-Konfiguration</title>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<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>
|
|
<a th:href="@{/orders}" th:text="Aufträge">Aufträge</a>
|
|
<!--<a href="#account">Mein Konto</a>-->
|
|
</div>
|
|
</nav>
|
|
<h1>Basisevent konfigurieren</h1>
|
|
<input type="hidden" name="addCatalog">
|
|
<div class="content">
|
|
<h2>Dienstleistung</h2>
|
|
<label for="dienstleistungen"></label>
|
|
<select name="dienstleistungen" id="dienstleistungen">
|
|
<option value="eventcatering">Eventcatering</option>
|
|
<option value="partyservice">Partyservice</option>
|
|
<option value="mobile_breakfast">Mobile Breakfast</option>
|
|
<option value="rent-a-cook">Rent-a-Cook</option>
|
|
</select>
|
|
Eventbasispreis: 500€
|
|
|
|
<h2>Mindestzeitraum</h2>
|
|
<form th:object="${formCatalogEntry}" method="post" th:action="@{/catalog_editor/add_time}">
|
|
<label>Mindestzeitraum:</label>
|
|
<input th:field="*{minimumTimePeriod}" type="number" min="1" step="1" value="1"/>
|
|
<button type="submit">Zum Model hinzufügen</button>
|
|
</form>
|
|
|
|
<span th:text="${formCatalogEntry.minimumTimePeriod}"></span>
|
|
<span th:text="${formCatalogEntry}"></span>
|
|
|
|
<h2>Basisausstattung</h2>
|
|
<table>
|
|
<tr>
|
|
<th>Produktname</th>
|
|
<th>Menge</th>
|
|
<th>Stückpreis</th>
|
|
</tr>
|
|
<tr th:each="item : ${inventory}">
|
|
<td th:text="${item}">
|
|
<td th:text="${item.getItemId()}">
|
|
<td th:text="${item.getName()}">
|
|
<td th:text="${item.getAmount()}">
|
|
<td th:text="${item.getCost()}"> €
|
|
<td>
|
|
<form method="post" th:action="@{/catalog_editor/remove_product}">
|
|
<input type="hidden" name="id" th:value="${item.getItemId()}">
|
|
<button type="submit">Entfernen</button>
|
|
</form>
|
|
</td>
|
|
</table>
|
|
<form method="post" th:action="@{/catalog_editor/product_add}">
|
|
<label for="name">Produktname</label>
|
|
<input type="text" id="name" name="name" required>
|
|
<label for="amount">Menge</label>
|
|
<input type="number" id="amount" name="amount" min="1" required>
|
|
<input type="hidden" name="cost" value="50.0">
|
|
<button type="submit">Artikel hinzufügen</button>
|
|
</form>
|
|
<br>
|
|
Gesamtpreis: 90 €<br>
|
|
<form method="post" th:action="@{/catalog_editor/catalog_add}" th:object="${formCatalogEntry}">
|
|
<button type="submit">Zum Katalog hinzufügen</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|