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>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div layout:fragment="content">
|
|
|
|
<div>
|
2023-11-11 17:56:01 +01:00
|
|
|
<h1>Kundenverwaltung</h1>
|
2023-11-15 17:27:04 +01:00
|
|
|
<table class="table">
|
2023-11-11 17:56:01 +01:00
|
|
|
<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>
|
2023-11-15 17:27:04 +01:00
|
|
|
<td><a th:href="@{/customers/edit/{id}(id=${customer.id})}"><button class="btn btn-warning">Bearbeiten</button></a></td>
|
2023-11-15 01:21:44 +01:00
|
|
|
<td>
|
2023-11-15 17:27:04 +01:00
|
|
|
<a th:if="${customer.isEnabled}" th:href="@{/customers/remove/{id}(id=${customer.id})}"><button class="btn btn-danger">Entfernen</button></a>
|
2023-11-15 01:21:44 +01:00
|
|
|
<b th:if="${!customer.isEnabled}">Deaktiviert</b>
|
|
|
|
</td>
|
2023-11-11 17:56:01 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
</div>
|
2023-11-11 17:56:01 +01:00
|
|
|
</body>
|
|
|
|
</html>
|