mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-06-23 21:33:42 +02:00
This finally makes the licensing under AGPL-3.0-or-later explicit after I got the okay from the kickstart source owners. This also checks the REUSE compliance in a pre commit hook, and therefore also in CI.
38 lines
1.6 KiB
HTML
38 lines
1.6 KiB
HTML
<!--/*-->
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
SPDX-FileCopyrightText: 2023 swt23w23
|
|
<!--*/-->
|
|
<!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='Personal bearbeiten')}">
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div layout:fragment="content">
|
|
<form th:object="${form}" method="post">
|
|
<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>
|
|
</div>
|
|
<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>
|
|
<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>
|
|
</select>
|
|
<div th:if="${#fields.hasErrors('job')}" class="invalid-feedback">Ungültiger Job</div>
|
|
</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>
|
|
</body>
|
|
</html>
|