mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
Übernahme Suchbegriff und Typsuche
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
type Parameters struct {
|
||||
Query string
|
||||
Collection string
|
||||
Placeholder sting
|
||||
Extended bool
|
||||
}
|
||||
type SearchResultBaende struct {
|
||||
|
||||
@@ -15,13 +15,21 @@
|
||||
>
|
||||
-->
|
||||
<a
|
||||
href="/suche/baende"
|
||||
{{ if $model.Placeholder -}}
|
||||
href="/suche/baende?p={{ $model.Placeholder }}"
|
||||
{{- else -}}
|
||||
href="/suche/baende"
|
||||
{{- end -}}
|
||||
class="block no-underline text-xl"
|
||||
{{ if eq $model.Collection "baende" }}aria-current="page"{{- end -}}
|
||||
>Bänden</a
|
||||
>
|
||||
<a
|
||||
href="/suche/beitraege"
|
||||
{{ if $model.Placeholder -}}
|
||||
href="/suche/beitraege?p={{ $model.Placeholder }}"
|
||||
{{- else -}}
|
||||
href="/suche/beitraege"
|
||||
{{- end -}}
|
||||
class="block no-underline text-xl"
|
||||
{{ if eq $model.Collection "beitraege" }}aria-current="page"{{- end -}}
|
||||
>Beiträgen</a
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="flex flex-row justify-between gap-x-3 w-full">
|
||||
<label for="q" class="hidden">Suchbegriffe</label>
|
||||
<input
|
||||
{{ if $q }}value="{{ $q }}"{{- end }}
|
||||
value="{{ $parameters.Placeholder }}"
|
||||
type="search"
|
||||
name="q"
|
||||
minlength="3"
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
{{ $model := . }}
|
||||
|
||||
|
||||
<div id="searchcontrol" class="container-normal">
|
||||
<div
|
||||
id="searchcontrol"
|
||||
class="container-normal"
|
||||
x-data="{ placeholder: '{{ $model.parameters.Placeholder }}'">
|
||||
<div id="searchheading" class="flex flex-row justify-between min-h-14 items-end relative">
|
||||
<nav id="searchnav" class="flex flex-row items-end">
|
||||
<div
|
||||
@@ -18,13 +21,13 @@
|
||||
>
|
||||
-->
|
||||
<a
|
||||
href="/suche/baende"
|
||||
:href="'/suche/baende/?p='+placeholder"
|
||||
class="block no-underline"
|
||||
{{ if eq $model.type "baende" }}aria-current="page"{{- end -}}
|
||||
>Bänden</a
|
||||
>
|
||||
<a
|
||||
href="/suche/beitraege"
|
||||
:href="'/suche/beitraege/?p='+placeholder"
|
||||
class="block no-underline"
|
||||
{{ if eq $model.type "beitraege" }}aria-current="page"{{- end -}}
|
||||
>Beiträgen</a
|
||||
|
||||
Reference in New Issue
Block a user