preparations for deleting label fields

master
Josha von Gizycki 3 weeks ago
parent cadd6e8721
commit d4ef00260d

@ -0,0 +1,7 @@
package wanijo.wanijo2.http.controller
import org.springframework.stereotype.Controller
@Controller
class RemoveLabelFieldController {
}

@ -89,6 +89,10 @@ main {
h2 .low-key-hint {
color: var(--light-grey);
}
button {
padding: .3rem;
}
}
table {
@ -126,10 +130,6 @@ form {
textarea {
min-height: 20rem;
}
[type=submit] {
padding: .3rem;
}
}
.form-link {
@ -148,6 +148,10 @@ form {
}
}
.form-inline {
.form-single {
display: block;
}
.form-inline {
display: inline;
}

@ -56,11 +56,21 @@
<h2 class="low-key-hint">felder</h2>
<h3 class="low-key-hint">
label
<a th:href="@{/document/{id}/field/label/add(id=${document.id})}">(+)</a>
<a th:href="@{/document/{id}/field/label/add(id=${document.id})}">
<button>
neu
</button>
</a>
</h3>
<dl>
<th:block th:each="field : ${document.labelFields}">
<dt th:text="${field.name}"></dt>
<dt>
<th:block th:text="${field.name}" />
<form class="form-inline" th:action="@{/document/{id}/field/label/delete(id=${document.id})}" method="post">
<input type="hidden" name="labelId" th:value="${field.id}">
<button type="submit" class="warning">weg</button>
</form>
</dt>
<dd th:text="${field.value}"></dd>
</th:block>
</dl>
@ -88,7 +98,7 @@
</ul>
<h2 class="warning">gefahr</h2>
<form class="form-inline" th:action="@{/document/delete}" method="post">
<form class="form-single" th:action="@{/document/delete}" method="post">
<input type="hidden" name="documentId" th:value="${document.id}">
<button type="submit" class="warning">
LÖSCHEN

Loading…
Cancel
Save