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

39 lines
1,011 B
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='Kunden bearbeiten')}">
<head>
<meta charset="UTF-8" />
<title>Kunde Bearbeiten</title>
<link
rel="stylesheet"
th:href="@{/resources/css/customer/edit-style.css}"
/>
</head>
<body>
<section layout:fragment="content">
<div class="edit-customer-form">
<h2>Kunde Bearbeiten</h2>
<form
th:action="@{/customer/update}"
th:object="${customer}"
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 />
<button type="submit">Save</button>
</form>
<a th:href="@{/customer}" class="button">Cancel</a>
</div>
</section>
</body>
</html>