mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+FEATURE: double entry info
This commit is contained in:
@@ -18,6 +18,7 @@ type AlmanachResult struct {
|
||||
-->
|
||||
|
||||
<almanach-edit-page>
|
||||
<duplicate-warning-checker></duplicate-warning-checker>
|
||||
|
||||
<div class="flex container-normal bg-slate-100 mx-auto px-8">
|
||||
<div class="flex flex-row w-full justify-between">
|
||||
@@ -166,7 +167,11 @@ type AlmanachResult struct {
|
||||
<div class="inputlabelrow">
|
||||
<label for="preferred_title" class="inputlabel">Kurztitel</label>
|
||||
</div>
|
||||
<textarea name="preferred_title" id="preferred_title" class="inputinput no-enter" placeholder="" required autocomplete="off" rows="1">{{- $model.result.Entry.PreferredTitle -}}</textarea>
|
||||
<textarea name="preferred_title" id="preferred_title" class="inputinput no-enter" placeholder="" required autocomplete="off" rows="1" data-duplicate-check data-duplicate-endpoint="/api/entries/search" data-duplicate-result-key="entries" data-duplicate-current-id="{{ if not $model.is_new }}{{ $model.result.Entry.Id }}{{ end }}">{{- $model.result.Entry.PreferredTitle -}}</textarea>
|
||||
<div class="duplicate-warning hidden" data-duplicate-warning-for="preferred_title">
|
||||
<i class="ri-information-line"></i>
|
||||
<span data-duplicate-count></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{{ $place := $model.result.Place }}
|
||||
|
||||
<edit-page>
|
||||
<duplicate-warning-checker></duplicate-warning-checker>
|
||||
<div class="flex container-normal bg-slate-100 mx-auto px-8">
|
||||
<div class="flex flex-row w-full justify-between">
|
||||
<div class="flex flex-col justify-end-safe flex-2/5">
|
||||
@@ -115,7 +116,11 @@
|
||||
<div class="inputlabelrow">
|
||||
<label for="name" class="inputlabel">Name</label>
|
||||
</div>
|
||||
<textarea name="name" id="name" class="inputinput no-enter" autocomplete="off" rows="1">{{- $place.Name -}}</textarea>
|
||||
<textarea name="name" id="name" class="inputinput no-enter" autocomplete="off" rows="1" data-duplicate-check data-duplicate-endpoint="/api/places/search" data-duplicate-result-key="places" data-duplicate-current-id="{{ if not $model.is_new }}{{ $place.Id }}{{ end }}">{{- $place.Name -}}</textarea>
|
||||
<div class="duplicate-warning hidden" data-duplicate-warning-for="name">
|
||||
<i class="ri-information-line"></i>
|
||||
<span data-duplicate-count></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputwrapper">
|
||||
<div class="inputlabelrow">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{{ $agent := $model.result.Agent }}
|
||||
|
||||
<edit-page>
|
||||
<duplicate-warning-checker></duplicate-warning-checker>
|
||||
<div class="flex container-normal bg-slate-100 mx-auto px-8">
|
||||
<div class="flex flex-row w-full justify-between">
|
||||
<div class="flex flex-col justify-end-safe flex-2/5">
|
||||
@@ -117,7 +118,11 @@
|
||||
<div class="inputlabelrow">
|
||||
<label for="name" class="inputlabel">Name</label>
|
||||
</div>
|
||||
<textarea name="name" id="name" class="inputinput no-enter" autocomplete="off" rows="1">{{- $agent.Name -}}</textarea>
|
||||
<textarea name="name" id="name" class="inputinput no-enter" autocomplete="off" rows="1" data-duplicate-check data-duplicate-endpoint="/api/agents/search" data-duplicate-result-key="agents" data-duplicate-current-id="{{ if not $model.is_new }}{{ $agent.Id }}{{ end }}">{{- $agent.Name -}}</textarea>
|
||||
<div class="duplicate-warning hidden" data-duplicate-warning-for="name">
|
||||
<i class="ri-information-line"></i>
|
||||
<span data-duplicate-count></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputwrapper">
|
||||
<div class="inputlabelrow">
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{{ $series := $model.result.Series }}
|
||||
|
||||
<edit-page>
|
||||
<duplicate-warning-checker></duplicate-warning-checker>
|
||||
<div class="flex container-normal bg-slate-100 mx-auto px-8">
|
||||
<div class="flex flex-row w-full justify-between">
|
||||
<div class="flex flex-col justify-end-safe flex-2/5">
|
||||
@@ -117,7 +118,11 @@
|
||||
<div class="inputlabelrow">
|
||||
<label for="title" class="inputlabel">Reihentitel</label>
|
||||
</div>
|
||||
<textarea name="title" id="title" class="inputinput no-enter" autocomplete="off" rows="1">{{- $series.Title -}}</textarea>
|
||||
<textarea name="title" id="title" class="inputinput no-enter" autocomplete="off" rows="1" data-duplicate-check data-duplicate-endpoint="/api/series/search" data-duplicate-result-key="series" data-duplicate-current-id="{{ if not $model.is_new }}{{ $series.Id }}{{ end }}">{{- $series.Title -}}</textarea>
|
||||
<div class="duplicate-warning hidden" data-duplicate-warning-for="title">
|
||||
<i class="ri-information-line"></i>
|
||||
<span data-duplicate-count></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="inputwrapper">
|
||||
<div class="inputlabelrow">
|
||||
|
||||
Reference in New Issue
Block a user