mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
47 lines
1.6 KiB
HTML
47 lines
1.6 KiB
HTML
<!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:action="@{/profile}" method="post">
|
|
<h2>Authentifizierung</h2>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="username">Nutzername</label>
|
|
<input class="form-control" name="username" th:value="${user.username}" type="text">
|
|
</div>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="password" th:text="Passwort"></label>
|
|
<input class="form-control" name="password" type="password">
|
|
</div>
|
|
|
|
<h2>Nutzerinformationen</h2>
|
|
<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>
|
|
<div class="mb-3">
|
|
<label class="form-label" for="address">Adresse</label>
|
|
<textarea class="form-control" name="address" th:text="${user.address}" rows="3" required></textarea>
|
|
</div>
|
|
|
|
<button class="btn btn-primary" type="submit">Bearbeiten</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div th:if="${user.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>
|