{% extends "../field.html" %}
{% load crispy_forms_filters %}
{% load l10n %}

{% block field-body %}
  <div class="control">
  {% for choice in field.field.choices %}
    <label class="radio" for="id_{{ field.html_name }}_{{ forloop.counter0 }}">
      <input type="radio"{% if choice.0|stringformat:"s" == field.value|default_if_none:""|stringformat:"s" %} checked{% endif %} name="{{ field.html_name }}" id="id_{{ field.html_name }}_{{   forloop.counter0 }}" value="{{ choice.0|unlocalize }}" {% if field.field.disabled %}disabled{% endif %} {{ field.field.widget.attrs|flatatt }}>
        {{ choice.1|unlocalize }}
    </label>
  {% endfor %}
  </div>
{% endblock %}
