mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
FIX: better loading time of /reihen
This commit is contained in:
@@ -32,21 +32,26 @@
|
||||
<div class="pb-0 border-b-4 border-zinc-300 grow">
|
||||
<form
|
||||
method="GET"
|
||||
hx-boost="false"
|
||||
action="/reihen/"
|
||||
hx-get="/reihen/results/"
|
||||
hx-indicator="body"
|
||||
hx-push-url="false"
|
||||
hx-swap="outerHTML"
|
||||
hx-target="#reihenresults"
|
||||
x-target="searchcontent"
|
||||
role="search"
|
||||
aria-label="Reihentitelsuche">
|
||||
{{- if $model.letter -}}
|
||||
<input type="hidden" name="letter" value="{{- $model.letter -}}" />
|
||||
<input type="hidden" name="letter" value="{{- $model.letter -}}" :disabled="search" />
|
||||
{{- end -}}
|
||||
{{- if and $model.result $model.result.Agent -}}
|
||||
<input type="hidden" name="agent" value="{{- $model.result.Agent.Id -}}" />
|
||||
<input type="hidden" name="agent" value="{{- $model.result.Agent.Id -}}" :disabled="search" />
|
||||
{{- end -}}
|
||||
{{- if and $model.result $model.result.Place -}}
|
||||
<input type="hidden" name="place" value="{{- $model.result.Place.Id -}}" />
|
||||
<input type="hidden" name="place" value="{{- $model.result.Place.Id -}}" :disabled="search" />
|
||||
{{- end -}}
|
||||
{{- if $model.year -}}
|
||||
<input type="hidden" name="year" value="{{- $model.year -}}" />
|
||||
<input type="hidden" name="year" value="{{- $model.year -}}" :disabled="search" />
|
||||
{{- end -}}
|
||||
<input
|
||||
class="px-1.5 font-serif placeholder:italic w-full"
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<span class="filtercategory">Erscheinungsort</span> ·
|
||||
<span class="filterterm">{{ $model.result.Place.Name }}</span>
|
||||
{{- if (IsAdminOrEditor $model.request.user) -}}
|
||||
<a href="/ort/{{ $model.result.Place.Id }}/edit/" class="no-underline rounded bg-stone-100 px-1.5">
|
||||
<a href="/ort/{{ $model.result.Place.Id }}/edit" class="no-underline rounded bg-stone-100 px-1.5">
|
||||
<i class="ri-edit-line"></i>
|
||||
</a>
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user