swt23w23/src/main/resources/templates/profile.html
2023-11-21 18:00:29 +01:00

46 lines
1.5 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>
<meta charset="utf-8" />
<link rel="stylesheet" th:href="@{/resources/css/profile/style.css}" />
<title th:text="#{profile.title}" />
</head>
<body>
<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/delete}">
<button class="danger_zone" th:text="#{profile.delete}" type="button"></button>
</a>
</div>
</div>
</form>
</section>
</body>
</html>