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

39 lines
1,011 B
HTML
Raw Normal View History

2023-11-10 17:10:24 +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='Kunden bearbeiten')}">
2023-11-10 17:10:24 +01:00
<head>
<meta charset="UTF-8" />
<title>Kunde Bearbeiten</title>
<link
rel="stylesheet"
th:href="@{/resources/css/customer/edit-style.css}"
/>
</head>
<body>
2023-11-13 20:09:39 +01:00
<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}" />
2023-11-10 17:10:24 +01:00
2023-11-13 20:09:39 +01:00
<label for="name">Name:</label>
<input type="text" th:field="*{name}" required />
2023-11-10 17:10:24 +01:00
2023-11-13 20:09:39 +01:00
<label for="surname">Nachname:</label>
<input type="text" th:field="*{surname}" required />
2023-11-10 17:10:24 +01:00
2023-11-13 20:09:39 +01:00
<button type="submit">Save</button>
</form>
<a th:href="@{/customer}" class="button">Cancel</a>
</div>
</section>
2023-11-10 17:10:24 +01:00
</body>
</html>