{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/radio-field.html' with field= only %} optional parameters: value - input element value override instead of default filtered field value (ignored if None) TODO: the widget is not currently configurable {% endcomment %}
{% include 'mtp_common/forms/field-errors.html' with field=field only %} {% include 'mtp_common/forms/field-help-text.html' with field=field only %} {% with initial=value|default:field.value %} {% for value, label in field.field.choices %}
{% endfor %} {% endwith %}