Personen Verbesserungen

This commit is contained in:
Simon Martens
2025-02-25 12:16:39 +01:00
parent 24f1e4fd55
commit f35c738cee
13 changed files with 81 additions and 23 deletions

View File

@@ -17,7 +17,7 @@
<div id="personheader" class="border-t border-r border-zinc-300 relative w-full">
{{ template "heading" . }}
<div class="flex flex-row justify-end mt-12 items-end">
{{ template "notifier" . }}
{{ template "notifier" . }}
{{ template "professionselectbox" . }}
{{ template "searchbox" . }}
</div>
@@ -29,8 +29,10 @@
{{ if .agents }}
<div class="w-full flex flex-col">
{{ range $count, $agent := .agents }}
<div class="flex flex-row odd:bg-stone-100 even:bg-stone-50 px-3 py-0.5">
<div class="grow">
<div
class="flex flex-row odd:bg-stone-100 even:bg-stone-50 px-3 py-0.5"
id="personlist">
<div class="grow" id="{{- $agent.Id -}}">
<a href="/person/{{ $agent.Id }}" class="search-result font-bold">
{{ $agent.Name }}
</a>
@@ -61,11 +63,12 @@
{{- $parr := $agent.ProfessionArray -}}
{{- if $parr -}}
{{- range $i, $p := $parr -}}
<div
class="inline-block px-2 py-0.5 text-sm font-sans
bg-slate-200 rounded ml-2">
<a
href="/personen/?letter={{- Upper (First $agent.Name) -}}&filter={{ Lower $p }}"
class="inline-block px-2 py-0.5 text-sm font-sans no-underline
hover:text-slate-950 bg-slate-200 rounded ml-2">
{{ $p }}
</div>
</a>
{{- end -}}
{{- end -}}
{{- end -}}
@@ -79,8 +82,6 @@
</div>
{{ end }}
{{ if .altagents }}
{{ end }}
{{ else }}
<p>Keine Personen gefunden.</p>
{{ end }}