Add event_configuration.html and adjusted WelcomeController.java to link it

This commit is contained in:
Erik Hohlfeld 2023-11-07 13:54:16 +01:00 committed by Simon Bruder
parent b3b817b869
commit 3df78b4ba0
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC
2 changed files with 57 additions and 0 deletions

View file

@ -30,4 +30,9 @@ public class WelcomeController {
public String catalog() {
return "catalog";
}
@GetMapping("/event_configuration")
public String event_configuration() {
return "event_configuration";
}
}

View file

@ -0,0 +1,52 @@
<!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>Auftragskonfiguration</title></head>
<body>
<nav>
<a href="/dienstleistungen.html/">Dienstleistungen</a> |
<button>Login</button>
</nav>
<h1>Auftrag konfigurieren</h1>
<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>
Preis 30€
<h2>Artikel</h2>
<table>
<tr>
<th>Produktname</th>
<th>Menge</th>
<th>Stückzahl</th>
</tr>
<tr>
<td>Brötchen</td>
<td>30 [ + / - ]</td>
<td>1,00 €</td>
<td>[Löschen]</td>
</tr>
<tr>
<td>Kerze</td>
<td>20 [ + / - ]</td>
<td>3.00 €</td>
<td>[Löschen]</td>
</tr>
<tr>
<td>[Artikel Hinzufügen]</td>
</tr>
</table>
<br>
Gesamtpreis: 90 €<br>
<button>In den Warenkorb</button>
</div>
</body>
</html>