{{ define "title" -}} {{( pgettext "Surroundings Page" "title" )}} {{- end }} {{ define "breadcrumb" -}} {{- end }} {{ define "content" -}} {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/surroundings.highlightIndex*/ -}}

{{( pgettext "Ad" "title" )}}

{{ with .Ad -}}
{{ CSRFInput }}
{{ with .Title -}}
{{( pgettext "Title" "input")}} {{ template "lang-selector" . }} {{ range $lang, $input := . -}} {{- end }} {{ template "error-message" . }}
{{- end }} {{ with .Media -}} {{ template "media-picker" . }} {{- end }} {{ with .Anchor -}}
{{( pgettext "Link Text" "input")}} {{ template "lang-selector" . }} {{ range $lang, $input := . -}} {{- end }} {{ template "error-message" . }}
{{- end }} {{ with .HRef -}} {{ template "error-message" . }} {{- end }}
{{- end }}

{{( pgettext "Highlights" "title" )}}

{{( pgettext "Add highlight" "action" )}} {{ if .Highlights -}}
{{ CSRFInput }} {{ $confirm := ( gettext "Are you sure you wish to delete this highlight?" )}} {{ range $highlight := .Highlights -}} {{- end }}
{{( pgettext "Image" "header" )}} {{( pgettext "Name" "header" )}} {{( pgettext "Actions" "header" )}}
{{ .Name }}
{{ else -}}

{{( gettext "No highlights added yet." )}}

{{- end }} {{- end }}