swt23w23/src/main/resources/templates/profile.html

45 lines
1.5 KiB
HTML
Raw Normal View History

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>
<link rel="stylesheet" th:href="@{/resources/css/profile/style.css}" />
<title th:text="#{profile.title}" />
</head>
<body>
2023-11-13 20:09:39 +01:00
<section layout:fragment="content">
<form th:action="@{/profile}" method="post" >
<h1 th:text="#{profile.title}"></h1>
<h2 class="settings" th:text="#{profile.authentification}"></h2>
<table>
<tr>
<td th:text="#{profile.username}"></td>
<td><input name="username" th:value="${user.username}" type="text"/></td>
</tr>
<tr>
<td th:text="#{profile.password}"></td>
<td><input name="password" type="password"/></td>
</tr>
</table>
<h2 class="settings" th:text="#{profile.userinformation}"></h2>
<table>
<tr>
<td th:text="#{profile.address}"></td>
<td><input name="address" th:value="${user.address}" type="text"/></td>
</tr>
</table>
<div class="danger_zone">
<h1 class="danger_zone" th:text="#{profile.danger_zone}"></h1>
<div class="horizontal_center">
<button class="danger_zone" th:text="#{profile.edit}" type="submit"></button>
<a th:href="@{/profile/disable}">
<button th:if="${user.hasRole('CUSTOMER')}" class="danger_zone" th:text="#{profile.delete}" type="button"></button>
2023-11-13 20:09:39 +01:00
</a>
</div>
</div>
</form>
</section>
2023-11-01 12:32:54 +01:00
</body>
</html>