{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/select-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) 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 %} {% with selected=value|default:field.value|default:field.field.initial %} {% endwith %}