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

34 lines
764 B
HTML
Raw Normal View History

2023-11-10 17:10:24 +01:00
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Kunde Bearbeiten</title>
<link
rel="stylesheet"
th:href="@{/resources/css/customer/edit-style.css}"
/>
</head>
<body>
<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>
</body>
</html>