swt23w23/src/main/resources/templates/edit-staff.html
2023-11-21 18:00:18 +01:00

30 lines
821 B
HTML

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Personal Bearbeiten</title>
<link rel="stylesheet" th:href="@{/resources/css/staff/edit-style.css}" />
</head>
<body>
<div class="edit-staff-form">
<h2>Personal Bearbeiten</h2>
<form th:action="@{/staff/update}" th:object="${staff}" method="post">
<input type="hidden" th:field="*{id}" />
<label for="name">Name:</label>
<input type="text" th:field="*{name}" required />
<label for="surname">Nachname:</label>
<input type="text" th:field="*{surname}" required />
<label for="job">Beruf:</label>
<input type="text" th:field="*{job}" required />
<button type="submit">Save</button>
</form>
<a th:href="@{/staff}" class="button">Cancel</a>
</div>
</body>
</html>