swt23w23/src/main/resources/templates/customers.html
Simon Bruder bac025fd0a
Make project REUSE compliant
This finally makes the licensing under AGPL-3.0-or-later explicit after
I got the okay from the kickstart source owners.

This also checks the REUSE compliance in a pre commit hook, and
therefore also in CI.
2023-12-11 17:59:14 +01:00

38 lines
1.1 KiB
HTML

<!--/*-->
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2023 swt23w23
<!--*/-->
<!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>
<div layout:fragment="content">
<div>
<h1>Kundenverwaltung</h1>
<table class="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})}"><button class="btn btn-warning">Bearbeiten</button></a></td>
<td>
<a th:if="${customer.isEnabled}" th:href="@{/customers/remove/{id}(id=${customer.id})}"><button class="btn btn-danger">Entfernen</button></a>
<b th:if="${!customer.isEnabled}">Deaktiviert</b>
</td>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>