{{ $model := . }} {{ $agent := $model.result.Agent }}

{{- if $model.is_new -}} Person {{- else -}} {{- $agent.Name -}} {{- end -}} {{- if $model.is_new -}} Neu {{- end -}}

{{- if not $model.is_new -}} {{- end -}}
{{- if not $model.is_new -}}
Datenbank-ID
{{ $agent.Id }}
Navigation
{{- if $model.result.Prev -}}
{{ $model.result.Prev.Name }}
{{- end -}} A - Z {{- if $model.result.Next -}}
{{ $model.result.Next.Name }}
{{- end -}}
Zuletzt bearbeitet
{{ GermanDate $agent.Updated }}, {{ GermanTime $agent.Updated }}h
{{- if $model.result.User -}}{{ $model.result.User.Name }}{{- end -}}
{{- end -}}
{{ template "_usermessage" $model }}
Verknüpfte Bände {{ len $model.result.Entries }}
Verknüpfte Inhalte {{ len $model.result.Contents }}

{{- if $model.result.Entries -}}
    {{- range $entry := $model.result.Entries -}} {{- $entryTypes := index $model.result.EntryTypes $entry.Id -}}
  • {{- $entry.PreferredTitle -}} {{- if $entryTypes -}}
    {{- range $i, $t := $entryTypes -}} {{- if $i }}, {{ end -}}{{ $t -}} {{- end -}}
    {{- end -}}
    {{ $entry.Year }}
  • {{- end -}}
{{- else -}}
Keine Bände verknüpft.
{{- end -}}
{{- if $model.result.Contents -}} {{- else -}}
Keine Inhalte verknüpft.
{{- end -}}

Abbrechen {{- if not $model.is_new -}} Reset {{- end -}}