2023-11-11 17:56:01 +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"
|
|
|
|
layout:decorate="~{layout.html(title='Kunden')}">
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" th:href="@{/resources/css/customer/style.css}" />
|
|
|
|
<title th:text="${title}"></title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<section layout:fragment="content">
|
|
|
|
<div class="verwaltung">
|
|
|
|
<h1>Kundenverwaltung</h1>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th>Nutzername</th>
|
|
|
|
<th>Aufträge</th>
|
|
|
|
<th>Bearbeiten</th>
|
|
|
|
<th>Entfernen</th>
|
|
|
|
</tr>
|
|
|
|
<tr th:each="customer : ${customers}">
|
|
|
|
<td th:text="${customer.username}">Musterkoch</td>
|
|
|
|
<td>Aufträge</td>
|
|
|
|
<td><a th:href="@{/customers/edit/{id}(id=${customer.id})}" class="button">Bearbeiten</a></td>
|
2023-11-15 01:21:44 +01:00
|
|
|
<td>
|
|
|
|
<a th:if="${customer.isEnabled}" th:href="@{/customers/remove/{id}(id=${customer.id})}" class="button">Entfernen</a>
|
|
|
|
<b th:if="${!customer.isEnabled}">Deaktiviert</b>
|
|
|
|
</td>
|
2023-11-11 17:56:01 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</body>
|
|
|
|
</html>
|