+FEATURE: double entry info

This commit is contained in:
Simon Martens
2026-01-11 12:02:05 +01:00
parent 6175e9c99a
commit ce7e03e983
10 changed files with 590 additions and 310 deletions

View File

@@ -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">