Nach Typ suchen

This commit is contained in:
Simon Martens
2025-03-10 14:38:10 +01:00
parent 5980ce6c6c
commit b8f36274fc
7 changed files with 39 additions and 18 deletions

View File

@@ -45,7 +45,9 @@
Year string
OnlyScans bool
}
*/}}
.types []string
*/}}
{{ $isAlm := false }}
{{ $isTitle := false }}
@@ -109,7 +111,7 @@
name="persons"
id="persons"
{{ if or $isBase $isPerson -}}checked{{- end -}} />
<label for="person">Personen &amp; Pseudonyme</label>
<label for="persons">Personen &amp; Pseudonyme</label>
</div>
<div class="selectgroup-option">
<input
@@ -177,6 +179,17 @@
name="annotationsstring"
id="annotationsstring"
value="{{ $model.parameters.AnnotationsString }}" />
<label for="typestring">Kategorie</label>
<select name="typestring" id="typestring" class="w-full">
<option value="">Alle</option>
{{- range $i, $t := $model.types -}}
<option
value="{{ $t }}"
{{ if eq $t $model.parameters.TypeString -}}selected{{- end -}}>
{{ $t }}
</option>
{{- end -}}
</select>
<button id="submitbutton" type="submit" class="">Suchen</button>
<a href="/suche/beitraege" class="whitespace-nowrap"
><i class="ri-arrow-left-long-line"></i> Zurück zur einfachen Suche</a