{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/radio-field.html' with field= only %} optional parameters: input_classes - classes to add to the input element label_classes - classes to add to the fieldset legend element value - input element value override instead of default filtered field value (ignored if None) inline - whether options should show in one row small - whether smaller circles should be used 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 %}
{% with initial=value|default:field.value|default:field.field.initial %} {% for choice, label in field.field.choices %}
{% endfor %} {% endwith %}