mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+Better Cross-Linking between Alamanch and beiträge
This commit is contained in:
@@ -5,7 +5,20 @@
|
||||
<div class="flex flex-row w-full justify-between">
|
||||
<div class="flex flex-col justify-end-safe flex-2/5">
|
||||
<div class="mb-1">
|
||||
<i class="ri-file-list-3-line"></i> Beiträge
|
||||
<div class="header-tabs">
|
||||
{{- if $model.result -}}
|
||||
<a href="/almanach/{{- $model.result.Entry.MusenalmID -}}/edit" class="header-tab">
|
||||
<i class="ri-book-line"></i> Almanach
|
||||
</a>
|
||||
{{- else -}}
|
||||
<span class="header-tab header-tab-disabled">
|
||||
<i class="ri-book-line"></i> Almanach
|
||||
</span>
|
||||
{{- end -}}
|
||||
<span class="header-tab header-tab-active">
|
||||
<i class="ri-file-list-3-line"></i> Beiträge
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<h1 class="text-2xl w-full font-bold text-slate-900 mb-1">
|
||||
{{- if $model.result -}}
|
||||
@@ -43,18 +56,6 @@
|
||||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
·
|
||||
<div>
|
||||
<a href="/almanach/{{- $model.result.Entry.MusenalmID -}}/contents/edit" class="text-gray-700 no-underline hover:text-slate-950 block">
|
||||
<i class="ri-loop-left-line"></i> Reset
|
||||
</a>
|
||||
</div>
|
||||
·
|
||||
<div>
|
||||
<a href="/almanach/{{- $model.result.Entry.MusenalmID -}}/edit" class="text-gray-700 no-underline hover:text-slate-950 block">
|
||||
<i class="ri-edit-2-line"></i> Almanach
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
@@ -65,7 +66,7 @@
|
||||
<div class="font-bold text-sm">
|
||||
<i class="ri-navigation-line"></i> Navigation
|
||||
</div>
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="flex items-center gap-2">
|
||||
{{- if $model.result.PrevByTitle -}}
|
||||
<tool-tip position="top" class="!inline">
|
||||
<div class="data-tip">{{ $model.result.PrevByTitle.PreferredTitle }}</div>
|
||||
@@ -129,14 +130,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container-normal mx-auto mt-4 !px-0">
|
||||
<div class="container-normal mx-auto mt-1 !px-0">
|
||||
{{ template "_usermessage" $model }}
|
||||
<div id="contents-sync-indicator" class="fixed right-6 bottom-6 z-50 hidden rounded-full bg-stone-200 px-3 py-2 text-sm text-stone-700 shadow-md">
|
||||
<i class="ri-loader-4-line spinning mr-2"></i>
|
||||
Reihenfolge wird gespeichert
|
||||
</div>
|
||||
<input type="hidden" name="csrf_token" value="{{ $model.csrf_token }}" data-role="csrf-token" />
|
||||
<div class="flex items-center gap-3 px-4">
|
||||
<div class="flex items-center gap-3 px-4 hidden">
|
||||
<form
|
||||
method="POST"
|
||||
action="/almanach/{{ $model.result.Entry.MusenalmID }}/contents/edit/extent"
|
||||
@@ -155,11 +156,17 @@
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="px-4 text-xl font-bold text-gray-800 mt-3">Inhalt</div>
|
||||
<div class="px-4 mt-1 flex items-center justify-between gap-3">
|
||||
<div class="flex items-center gap-2 text-lg font-bold text-gray-700">
|
||||
<i class="ri-folder-open-line"></i>
|
||||
<span>Inhalt</span>
|
||||
</div>
|
||||
<span id="content-filter-count" class="text-sm font-semibold text-gray-600 whitespace-nowrap" data-role="content-filter-count">
|
||||
{{ len $model.result.Contents }} Einträge
|
||||
</span>
|
||||
</div>
|
||||
<hr class="mx-4 mt-2 mb-1 border-slate-300" />
|
||||
<div class="px-4 py-2 flex flex-wrap items-center gap-3">
|
||||
<label for="content-filter" class="text-base font-bold text-gray-700 whitespace-nowrap">
|
||||
<i class="ri-search-line"></i> Filter
|
||||
</label>
|
||||
<input
|
||||
id="content-filter"
|
||||
type="text"
|
||||
@@ -182,9 +189,6 @@
|
||||
data-role="content-filter-type">
|
||||
<option value="">Alle Typen</option>
|
||||
</select>
|
||||
<span id="content-filter-count" class="text-sm text-gray-600 whitespace-nowrap ml-auto" data-role="content-filter-count">
|
||||
{{ len $model.result.Contents }} Einträge
|
||||
</span>
|
||||
<button
|
||||
type="button"
|
||||
class="content-action-button"
|
||||
|
||||
Reference in New Issue
Block a user