swt23w23/src/main/resources/templates/edit-staff.html

38 lines
1.6 KiB
HTML
Raw Normal View History

<!--/*-->
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-FileCopyrightText: 2023 swt23w23
<!--*/-->
2023-11-10 17:09:39 +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='Personal bearbeiten')}">
2023-11-10 17:09:39 +01:00
<head>
</head>
<body>
2023-11-15 17:27:04 +01:00
<div layout:fragment="content">
<form th:object="${form}" method="post">
2023-11-15 17:27:04 +01:00
<div class="mb-3">
<label class="form-label" for="name">Name:</label>
<input class="form-control" type="text" th:field="*{name}" th:errorclass="is-invalid" required/>
<div th:if="${#fields.hasErrors('name')}" class="invalid-feedback">Ungültiger Name</div>
2023-11-15 17:27:04 +01:00
</div>
2023-12-04 11:34:07 +01:00
<div class="mb-3">
<label class="form-label" for="wage">Lohn:</label>
<input class="form-control" type="text" th:field="*{wage}" th:errorclass="is-invalid" required/>
<div th:if="${#fields.hasErrors('wage')}" class="invalid-feedback">Ungültiger Lohn</div>
</div>
2023-11-15 17:27:04 +01:00
<div class="mb-3">
<label class="form-label" for="job">Beruf:</label>
<select th:field="*{job}" class="form-select" th:errorclass="is-invalid">
<option th:each="type : ${T(catering.staff.JobType).values()}" th:value="${type}" th:text="${type}" required></option>
2023-11-21 16:02:42 +01:00
</select>
<div th:if="${#fields.hasErrors('job')}" class="invalid-feedback">Ungültiger Job</div>
2023-11-15 17:27:04 +01:00
</div>
<button class="btn btn-primary" type="submit">Speichern</button>
<a th:href="@{/staff}"><button type="button" class="btn btn-danger">Abbrechen</button></a>
</form>
</div>
2023-11-10 17:09:39 +01:00
</body>
</html>