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

28 lines
1.1 KiB
HTML
Raw Normal View History

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="${employee}" method="post">
2023-11-15 17:27:04 +01:00
<input type="hidden" th:field="*{id}" />
<div class="mb-3">
<label class="form-label" for="name">Name:</label>
<input class="form-control" type="text" th:field="*{name}" required />
</div>
<div class="mb-3">
<label class="form-label" for="job">Beruf:</label>
2023-11-21 16:02:42 +01:00
<select name="job" class="form-select">
<option th:each="type : ${T(catering.staff.JobType).values()}" th:value="${type}" th:selected="${type.name() == employee.job.name()}" th:text="${type}" required></option>
2023-11-21 16:02:42 +01:00
</select>
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>