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.
37 lines
1.3 KiB
HTML
37 lines
1.3 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>neu</title>
|
|
</head>
|
|
<body>
|
|
<main id="content" layout:fragment="content">
|
|
<form th:action="@{/document/new}" th:object="${form}" method="post" class="vert">
|
|
<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>
|
|
|
|
<div class="form__widget" th:each="tag : ${tags}">
|
|
<label>
|
|
<input type="checkbox"
|
|
th:field="*{tagIds}"
|
|
th:value="${tag.id}">
|
|
<th:block th:text="${tag.name}"/>
|
|
</label>
|
|
</div>
|
|
|
|
<label for="tags">tags <small>(csv)</small></label>
|
|
<input id="tags" type="text" th:field="*{newTags}">
|
|
|
|
<button type="submit">
|
|
anlegen
|
|
</button>
|
|
</form>
|
|
</main>
|
|
</body>
|
|
</html>
|