mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-30 09:35:31 +00:00
Better Akteure Logik
This commit is contained in:
18
views/routes/akteure/person/body.gohtml
Normal file
18
views/routes/akteure/person/body.gohtml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{ $agent := index $.model.Agents .model.Search }}
|
||||
{{ if not $agent }}
|
||||
<div class="max-w-7xl mx-auto px-8 py-8">
|
||||
<div class="bg-red-50 border border-red-200 rounded-lg p-6">
|
||||
<div class="flex items-center">
|
||||
<i class="ri-error-warning-line text-red-600 text-2xl mr-3"></i>
|
||||
<span class="text-red-800 text-lg">Person nicht gefunden: <strong>{{ .model.Search }}</strong></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="max-w-7xl mx-auto px-8 py-8">
|
||||
<div class="bg-white px-6 py-6 rounded">
|
||||
{{ template "_back_navigation" $agent }}
|
||||
{{ template "_akteur" $agent }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
9
views/routes/akteure/person/head.gohtml
Normal file
9
views/routes/akteure/person/head.gohtml
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ $agent := index .model.Agents .model.Search }}
|
||||
<title>
|
||||
KGPZ –
|
||||
{{ if $agent }}
|
||||
{{ index $agent.Names 0 }}
|
||||
{{ else }}
|
||||
Person nicht gefunden
|
||||
{{ end }}
|
||||
</title>
|
||||
Reference in New Issue
Block a user