mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-06-23 21:33:42 +02:00
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.
53 lines
2.2 KiB
HTML
53 lines
2.2 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='Profil')}">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div layout:fragment="content">
|
|
<div class="mb-4">
|
|
<form th:object="${profileForm}" th:action="@{/profile}" method="post">
|
|
<h2>Authentifizierung</h2>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="username">Nutzername</label>
|
|
<input class="form-control" th:field="*{username}" th:errorclass="is-invalid" type="text" required>
|
|
<div th:if="${#fields.hasErrors('username')}" class="invalid-feedback">Ungültiger Nutzername</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="password" th:text="Passwort"></label>
|
|
<input class="form-control" th:field="*{password}" th:errorclass="is-invalid" type="password">
|
|
<div th:if="${#fields.hasErrors('password')}" class="invalid-feedback">Ungültiges Passwort</div>
|
|
</div>
|
|
<h2>Nutzerinformationen</h2>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="fullName">Name</label>
|
|
<input class="form-control" th:field="*{fullName}" th:errorclass="is-invalid" type="text" required>
|
|
<div th:if="${#fields.hasErrors('fullName')}" class="invalid-feedback">Ungültiger Name</div>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="address">Adresse</label>
|
|
<textarea class="form-control" th:field="*{address}" th:errorclass="is-invalid" th:placeholder="*{address}" rows="3" required></textarea>
|
|
<div th:if="${#fields.hasErrors('address')}" class="invalid-feedback">Ungültige Addresse</div>
|
|
</div>
|
|
<button class="btn btn-primary" type="submit">Bearbeiten</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div sec:authorize="hasRole('CUSTOMER')" class="card">
|
|
<div class="card-header text-danger">Danger Zone</div>
|
|
<div class="card-body">
|
|
<a th:href="@{/profile/disable}">
|
|
<button class="btn btn-danger" type="button">Account löschen</button>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|