You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB
HTML

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{base}"
lang="">
<head>
<title th:text="${form.name}"></title>
</head>
<body>
<main id="content" layout:fragment="content">
<a th:href="@{/document/{id}(id=${form.id})}">&lt;&lt; zurück</a>
<h2>
<span class="low-key-hint">dokument</span>
<th:block th:text="${form.name}"/>
<span class="low-key-hint">bearbeiten</span>
</h2>
<form th:action="@{/document/edit}" th:object="${form}" method="post">
<input type="hidden" th:field="*{id}">
<label for="name">name</label>
<input id="name" type="text" th:field="*{name}" required>
<label for="description">beschreibung</label>
<textarea id="description" th:field="*{description}"></textarea>
<button type="submit">
bearbeiten
</button>
</form>
</main>
</body>
</html>