{{ $model := . }}
{{- if $model.result -}} Almanach {{- else -}} Almanach {{- end -}} Beiträge Einzelbeitrag

{{- if $model.result -}} {{- $model.result.Entry.PreferredTitle -}}
{{- if $model.is_new -}} Neuer Beitrag {{- else -}} Beitrag Nr. {{ $model.content.MusenalmID }} {{- end -}} {{- else -}} Beiträge bearbeiten {{- end -}}

{{- if $model.result -}}
{{- if not $model.is_new -}} ·
{{- if $model.prev_content -}} {{- end -}}
{{ $model.content.MusenalmID }}
{{- if $model.next_content -}} {{- end -}}
{{- end -}}
{{- end -}}
{{- if $model.result -}}
Navigation
{{- if not $model.is_new -}} {{- if $model.prev_content -}}
{{- if $model.prev_content.PreferredTitle -}} {{- $model.prev_content.PreferredTitle -}} {{- else if $model.prev_content.TitleStmt -}} {{- $model.prev_content.TitleStmt -}} {{- else -}} Beitrag Nr. {{ $model.prev_content.MusenalmID }} {{- end -}}
{{- else -}} {{- end -}} {{ $model.content_index }} / {{ $model.content_total }} {{- if $model.next_content -}}
{{- if $model.next_content.PreferredTitle -}} {{- $model.next_content.PreferredTitle -}} {{- else if $model.next_content.TitleStmt -}} {{- $model.next_content.TitleStmt -}} {{- else -}} Beitrag Nr. {{ $model.next_content.MusenalmID }} {{- end -}}
{{- else -}} {{- end -}} {{- else -}} Neu {{- end -}}
Datenbank-ID
{{ $model.content.Id }}
Zuletzt bearbeitet
{{ GermanDate $model.result.Entry.Updated }}, {{ GermanTime $model.result.Entry.Updated }}h
{{- if $model.result.User -}}{{ $model.result.User.Name }}{{- end -}}
{{- end -}}
{{/* usermessage moved into action bar */}}
{{- template "_content_edit" (Dict "content" $model.content "content_id" $model.content_id "entry" $model.result.Entry "content_types" $model.content_types "musenalm_types" $model.musenalm_types "pagination_values" $model.pagination_values "agents" $model.agents "content_agents" $model.content_agents "agent_relations" $model.agent_relations ) -}}
{{- $prefix := printf "content_%s_" $model.content_id -}} {{- $fieldId := printf "content-%s-edit-state" $model.content_id -}} {{ template "_content_status_edit" (Arr $model.content $prefix $fieldId) }}
{{ helpOr "contents" "musenalm_type" "Musenalm-Typen des Beitrags." }}
{{- template "_content_images_panel" (Dict "content" $model.content "entry" $model.result.Entry "csrf_token" $model.csrf_token "is_new" false ) -}}

{{- if $model.error -}} {{ $model.error }} {{- else if $model.success -}} {{ $model.success }} {{- end -}}

Liste Neuer Beitrag {{- if not $model.is_new -}} {{- end -}} {{- if $model.content.MusenalmID -}} {{- end -}} {{- if not $model.content.MusenalmID -}} {{- end -}}
Eintrag loeschen?
{{- if $model.content.TitleStmt -}}
{{ $model.content.TitleStmt }}
{{- end -}}

Der Eintrag wird dauerhaft geloescht. Verknuepfungen, Exemplare und Beitraege werden entfernt.