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

37 lines
1.7 KiB
HTML
Raw Normal View History

<!--/*-->
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2023 swt23w23
<!--*/-->
2023-11-06 19:48:33 +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='Registrierung')}">
2023-11-06 19:48:33 +01:00
2023-11-15 17:27:04 +01:00
<div layout:fragment="content">
<form th:object="${registrationForm}" method="post" th:action="@{/register}">
2023-11-15 17:27:04 +01:00
<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>
2023-11-13 20:09:39 +01:00
</div>
2023-11-15 17:27:04 +01:00
<div class="mb-3">
<label class="form-label" for="password">Passwort</label>
<input class="form-control" th:field="*{password}" th:errorclass="is-invalid" type="password" required>
<div th:if="${#fields.hasErrors('password')}" class="invalid-feedback">Ungültiges Passwort</div>
2023-11-13 20:09:39 +01:00
</div>
<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>
2023-11-15 17:27:04 +01:00
<div class="mb-3">
<label class="form-label" for="address">Adresse</label>
<textarea class="form-control" th:field="*{address}" th:errorclass="is-invalid" rows="3" required></textarea>
<div th:if="${#fields.hasErrors('address')}" class="invalid-feedback">Ungültige Addresse</div>
2023-11-13 20:09:39 +01:00
</div>
2023-11-15 17:27:04 +01:00
<button type="submit" class="btn btn-primary">Registrieren</button>
2023-11-13 20:09:39 +01:00
</form>
2023-11-15 17:27:04 +01:00
</div>
2023-11-06 19:48:33 +01:00
</html>