add, edit, delete and assign themes to dates
This commit is contained in:
40
src/main/resources/templates/subject/item.html
Normal file
40
src/main/resources/templates/subject/item.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org" layout:decorate="~{template}" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
|
||||
<body>
|
||||
<th:block layout:fragment="content">
|
||||
<div class="borderdist">
|
||||
<form th:action="@{/subject/save}" method="post" th:object="${bean}">
|
||||
<input type="hidden" th:field="*{pkSubject}" />
|
||||
<div class="container">
|
||||
<div class="row g-2">
|
||||
<div class="col-sm-3">Quelle</div>
|
||||
<div class="col-sm-9"><select th:field="*{fkSource}" class="form-select">
|
||||
<option th:each="o : ${sources}" th:value="${o.pkSource}" th:text="${o.name}"></option>
|
||||
</select></div>
|
||||
<div class="col-sm-3">Thema</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{theme}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Unterthema</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{subtheme}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Buchseiten</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{bookPages}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Arbeitsblätter</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{worksheets}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Bibelvers / Lernvers</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{bibleverse}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Anmerkungen</div>
|
||||
<div class="col-sm-9"><input type="text" th:field="*{notes}" class="form-control" /></div>
|
||||
<div class="col-sm-3">Reihenfolge</div>
|
||||
<div class="col-sm-9"><input type="number" th:field="*{orderNr}" class="form-control" /></div>
|
||||
<div class="col-sm-3"> </div>
|
||||
<div class="col-sm-9">
|
||||
<button type="submit" class="btn btn-outline-primary">Übernehmen</button>
|
||||
<a th:href="@{/subject/list}" class="btn btn-outline-secondary">Abbrechen</a>
|
||||
<a th:href="@{/subject/{id}/delete(id=${bean.pkSubject})}" class="btn btn-outline-danger" th:if="${bean.pkSubject}">Löschen</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</th:block>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user