{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/booking.DateFields*/ -}}
{{ with .ArrivalDate -}}
    <label>
        {{( pgettext "Arrival date" "input" )}}<br>
        <input type="date" required
               min="{{ formatDateAttr .MinDate }}"
               max="{{ formatDateAttr .MaxDate }}"
               name="{{ .Name }}" value="{{ .Val }}" {{ template "error-attrs" . }}
        ><br>
    </label>
    {{ template "error-message" . }}
{{- end }}
{{ with .DepartureDate -}}
    <label>
        {{( pgettext "Departure date" "input" )}}<br>
        <input type="date" required
               min="{{ formatDateAttr .MinDate }}"
               max="{{ formatDateAttr .MaxDate }}"
               name="{{ .Name }}" value="{{ .Val }}" {{ template "error-attrs" . }}
        ><br>
    </label>
    {{ template "error-message" . }}
{{- end }}
