{{- $template := .block.template -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- $class := "block block-contact" -}} {{- with .block.data -}}
{{ if or $title .description }}
{{ if $title }}

{{ partial "PrepareHTML" $title }}

{{ end }} {{- if .description }}
{{ partial "PrepareHTML" .description }}
{{ end -}}
{{ end -}}
{{ if .name }}

{{ .name }}

{{ end }} {{ with .address }} {{ if or .address .city .zipcode .country }}
{{ if .address }} {{ partial "PrepareHTML" .address }}, {{ end }}
{{ if .city }} {{ partial "PrepareHTML" .city }} {{ end }} {{ if .zipcode }} {{ partial "PrepareHTML" .zipcode }} {{ end }} {{ if .country }} {{ partial "PrepareHTML" .country }} {{ end }}
{{ end }} {{ end }}

{{ range .phone_numbers }} {{ . }}
{{ end }} {{ range .emails }} {{ . }}
{{ end }}

{{ if .timetable}}
    {{ range .timetable }} {{ if or .time_slot_morning.from .time_slot_morning.to .time_slot_afternoon.from .time_slot_afternoon.to }}
  • {{ .title }} {{ if or .time_slot_morning.from .time_slot_morning.to }} {{- if .time_slot_morning.from }} {{ end -}} {{- if .time_slot_morning.to }} {{ end -}} {{ end }} {{ if or .time_slot_afternoon.from .time_slot_afternoon.to }} {{- if .time_slot_afternoon.from }} {{ end -}} {{- if .time_slot_afternoon.to }} {{ end -}} {{ end -}}
  • {{ end }} {{ end }}
{{ end }}
{{- end -}}