{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/field.html' with field= only %} optional parameters: input_classes - classes to add to the input element label_classes - classes to add to the label element value - input element value override instead of default filtered field value (ignored if None) prefix/suffix - visually label the input element with text input_type - override widget's input type integer_input - when asking for whole numbers autocomplete - WCAG input purpose attrs - dict of additional attributes TODO: the widget is not currently configurable {% endcomment %}
{% include 'mtp_common/forms/field-label.html' with field=field label_classes=label_classes only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %} {% if prefix or suffix %}
{% endif %} {% if prefix %}{% endif %} {% if suffix %}{% endif %} {% if prefix or suffix %}
{% endif %}