2023-11-01 12:32:54 +01:00
|
|
|
<!DOCTYPE html>
|
2023-11-13 20:09:39 +01:00
|
|
|
<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')}">
|
2023-11-01 12:32:54 +01:00
|
|
|
<head>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div layout:fragment="content">
|
|
|
|
<div class="mb-4">
|
|
|
|
<form th:action="@{/profile}" method="post">
|
2023-11-16 13:11:49 +01:00
|
|
|
<h2>Authentifizierung</h2>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="mb-3">
|
2023-11-16 13:11:49 +01:00
|
|
|
<label class="form-label" for="username">Nutzername</label>
|
2023-11-15 17:27:04 +01:00
|
|
|
<input class="form-control" name="username" th:value="${user.username}" type="text">
|
2023-11-13 20:09:39 +01:00
|
|
|
</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="mb-3">
|
2023-11-16 13:11:49 +01:00
|
|
|
<label class="form-label" for="password" th:text="Passwort"></label>
|
2023-11-15 17:27:04 +01:00
|
|
|
<input class="form-control" name="password" type="password">
|
|
|
|
</div>
|
|
|
|
|
2023-11-16 13:11:49 +01:00
|
|
|
<h2>Nutzerinformationen</h2>
|
2023-11-20 21:38:30 +01:00
|
|
|
<div class="mb-3">
|
|
|
|
<label class="form-label" for="fullName">Name</label>
|
|
|
|
<input class="form-control" name="fullName" th:value="${user.fullName}" type="text">
|
|
|
|
</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="mb-3">
|
2023-11-16 13:11:49 +01:00
|
|
|
<label class="form-label" for="address">Adresse</label>
|
2023-11-21 01:20:33 +01:00
|
|
|
<textarea class="form-control" name="address" th:text="${user.address}" rows="3" required></textarea>
|
2023-11-15 17:27:04 +01:00
|
|
|
</div>
|
|
|
|
|
2023-11-16 13:11:49 +01:00
|
|
|
<button class="btn btn-primary" type="submit">Bearbeiten</button>
|
2023-11-15 17:27:04 +01:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div th:if="${user.hasRole('CUSTOMER')}" class="card">
|
2023-11-16 13:11:49 +01:00
|
|
|
<div class="card-header text-danger">Danger Zone</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
<div class="card-body">
|
|
|
|
<a th:href="@{/profile/disable}">
|
2023-11-16 13:11:49 +01:00
|
|
|
<button class="btn btn-danger" type="button">Account löschen</button>
|
2023-11-15 17:27:04 +01:00
|
|
|
</a>
|
2023-11-13 20:09:39 +01:00
|
|
|
</div>
|
2023-11-15 17:27:04 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-11-01 12:32:54 +01:00
|
|
|
</body>
|
|
|
|
</html>
|