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.
147 lines
5.8 KiB
HTML
147 lines
5.8 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="${document.name}"></title>
|
|
</head>
|
|
<body>
|
|
<main id="content" layout:fragment="content">
|
|
<h2>
|
|
<span class="low-key-hint">dokument:</span>
|
|
<th:block th:text="${document.name}" />
|
|
</h2>
|
|
|
|
<fieldset class="show__meta">
|
|
<legend>
|
|
meta
|
|
—
|
|
<a th:href="@{/document/{id}/edit(id=${document.id})}">bearbeiten</a>
|
|
</legend>
|
|
|
|
<dl>
|
|
<dt>id:</dt>
|
|
<dd th:text="${document.id}"></dd>
|
|
|
|
<dt>erstellt:</dt>
|
|
<dd th:text="${#temporals.format(document.createdAt, 'yyyy-MM-dd HH:mm')}"></dd>
|
|
|
|
<dt>aktualisiert:</dt>
|
|
<dd th:text="${#temporals.format(document.updatedAt, 'yyyy-MM-dd HH:mm')}"></dd>
|
|
</dl>
|
|
</fieldset>
|
|
|
|
<fieldset class="show__tags">
|
|
<legend>tags</legend>
|
|
|
|
<ul class="tag-container">
|
|
<li th:each="tag : ${documentTags}" class="tag-block">
|
|
<form class="form-link" th:action="@{/tagging/delete}" method="post">
|
|
<input type="hidden" name="tagId" th:value="${tag.id}">
|
|
<input type="hidden" name="documentId" th:value="${document.id}">
|
|
<button type="submit">
|
|
<th:block th:text="${tag.name}"/>
|
|
</button>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend>beschreibung</legend>
|
|
<div class="show__markdown" th:utext="${descHtml}"></div>
|
|
</fieldset>
|
|
|
|
<h2 class="low-key-hint">
|
|
verknüpfungen
|
|
<a th:href="@{/document/{id}/link/add(id=${document.id})}">
|
|
<button>
|
|
neu
|
|
</button>
|
|
</a>
|
|
</h2>
|
|
<h3 class="low-key-hint">
|
|
eingehend
|
|
</h3>
|
|
<ol>
|
|
<li th:each="link : ${incomingLinks}">
|
|
<a th:href="@{/document/{id}(id=${link.documentFrom})}"
|
|
th:text="link.documentFrom"></a>
|
|
</li>
|
|
</ol>
|
|
<h3 class="low-key-hint">
|
|
ausgehend
|
|
</h3>
|
|
<ol>
|
|
<li th:each="link : ${outgoingLinks}">
|
|
<a th:href="@{/document/{id}(id=${link.documentTo})}"
|
|
th:text="link.documentFrom"></a>
|
|
</li>
|
|
</ol>
|
|
|
|
<h2 class="low-key-hint">
|
|
felder
|
|
<a th:href="@{/document/{id}/field/add(id=${document.id})}">
|
|
<button>
|
|
neu
|
|
</button>
|
|
</a>
|
|
</h2>
|
|
<h3 class="low-key-hint">
|
|
beschriftung
|
|
</h3>
|
|
<dl>
|
|
<th:block th:each="field : ${document.labelFieldsSorted()}">
|
|
<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="labelFieldId" th:value="${field.id}">
|
|
<input type="hidden" name="documentId" th:value="${document.id}">
|
|
<button type="submit" class="warning">löschen</button>
|
|
</form>
|
|
</dt>
|
|
<dd th:text="${field.value}"></dd>
|
|
</th:block>
|
|
</dl>
|
|
<h3 class="low-key-hint">
|
|
datumsangaben
|
|
</h3>
|
|
<dl>
|
|
<th:block th:each="field : ${document.dateFieldsSorted()}">
|
|
<dt>
|
|
<th:block th:text="${field.name}" />
|
|
<form class="form-inline" th:action="@{/document/{id}/field/date/delete(id=${document.id})}" method="post">
|
|
<input type="hidden" name="dateFieldId" th:value="${field.id}">
|
|
<input type="hidden" name="documentId" th:value="${document.id}">
|
|
<button type="submit" class="warning">löschen</button>
|
|
</form>
|
|
</dt>
|
|
<dd th:text="${#temporals.format(field.value, 'yyyy-MM-dd HH:mm')}"></dd>
|
|
</th:block>
|
|
</dl>
|
|
|
|
<h2 class="low-key-hint">taggen</h2>
|
|
<ul class="tag-container">
|
|
<li th:each="tag : ${assignableTags}" class="tag-block">
|
|
<form class="form-link" th:action="@{/tagging/assign}" method="post">
|
|
<input type="hidden" name="tagId" th:value="${tag.id}">
|
|
<input type="hidden" name="documentId" th:value="${document.id}">
|
|
<button type="submit">
|
|
<th:block th:text="${tag.name}"/>
|
|
</button>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
|
|
<h2 class="warning">gefahr</h2>
|
|
<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
|
|
</button>
|
|
</form>
|
|
</main>
|
|
</body>
|
|
</html>
|