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

{{ partial "PrepareHTML" $title }}

{{ end -}}

{{ if .name }} {{ .name }}
{{ end }} {{ range .phone_numbers }} {{ . }}
{{ end }} {{ range .emails }} {{ . }}
{{ end }}

{{ with .address }} {{ if or .street .locality .postal_code .country }}
{{ if .street }} {{ partial "PrepareHTML" .street }}, {{ end }} {{ if .locality }} {{ partial "PrepareHTML" .locality }} {{ end }} {{ if .postal_code }} {{ partial "PrepareHTML" .postal_code }} {{ end }}
{{ end }} {{ 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 -}}