swt23w23/src/main/resources/templates/edit-staff.html
Simon Bruder 0f4b174460
Remove duplicate title elements
The title element should only be set by the layout template.
2023-11-21 18:00:35 +01:00

30 lines
1.1 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='Personal bearbeiten')}">
<head>
</head>
<body>
<div layout:fragment="content">
<form th:action="@{/staff/update}" th:object="${staff}" method="post">
<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="surname">Nachname:</label>
<input class="form-control" type="text" th:field="*{surname}" required />
</div>
<div class="mb-3">
<label class="form-label" for="job">Beruf:</label>
<input class="form-control" type="text" th:field="*{job}" required />
</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>