{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/date-field.html' with field= only %} optional parameters: label_classes - classes to add to the fieldset legend element value - input element value override instead of default filtered field value (ignored if None) autocomplete_dob - auto-complete date of birth year_field_completion - whether 2-digit years should auto-complete year_field_completion_era_bounday - see YearFieldCompletion component TODO: the widget is not currently configurable {% endcomment %}
{{ field.label }} {% include 'mtp_common/forms/field-help-text.html' with field=field only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %}