42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
|
xmlns:sec="http://www.thymeleaf.org/extras/spring-security" layout:decorate="~{layout/main.html}">
|
|
<head>
|
|
<title>Modul aktualisieren</title>
|
|
</head>
|
|
<body>
|
|
<ul layout:fragment="menu">
|
|
</ul>
|
|
<main layout:fragment="content">
|
|
<div class="container formpane">
|
|
<form th:action="@{/done/upsert/module}" th:object="${moduleBean}" method="post">
|
|
<div class="row mb-3" th:if="${moduleBean.pk} != null">
|
|
<label for="inputPk" class="col-sm-2 col-form-label">Inhalt von Eintrag</label>
|
|
<div class="col-sm-10">
|
|
<input id="inputPk" type="text" th:field="*{pk}" class="form-control" readonly="readonly" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="outputDay" class="col-sm-2 col-form-label">Name</label>
|
|
<div class="col-sm-10">
|
|
<input id="inputName" type="text" th:field="*{name}" class="form-control" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3" style="margin-top: 8px">
|
|
<div class="col-sm-2">Änderung</div>
|
|
<div class="col-sm-10">
|
|
<button id="okbtn" type="submit" class="btn btn-success">speichern</button>
|
|
<a class="btn btn-secondary" th:href="@{/done/list}">abbrechen</a>
|
|
<div class="dropdown float-right" th:if="${moduleBean.pk != null}" sec:authorize="hasRole('timetrack_user')">
|
|
<button class="btn btn-danger dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Eintrag löschen</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a class="dropdown-item" th:href="@{/done/delete/module/{id}(id=${moduleBean.pk})}">endgültig löschen</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html> |