{% load l10n djadmin_form djadmin_inline_form %}
{% part bound_field.field %}<div class="row radio-field">
    <div class="col s12">
        {% part field prefix %}{% endpart %}{% part field label %}<label for="{{ bound_field.id_for_label }}" class="{% part field add_label_class %}{{ form_label_class }}{% endpart %}">{{ bound_field.label }}</label>{% endpart %}
    </div>
    <div{% attrs bound_field 'group' %}
        id="id_{{ bound_field.html_name }}_container"
        class="col s12{% if field.required %} required{% endif %}{% if bound_field.errors %} has-error{% endif %}"
    {% endattrs %}>
        {% part field control %}
        {% for group, items in bound_field|select_options %}{% for choice, value, selected in items %}<div class="radio" id="id_{{ bound_field.html_name }}">
            <input{% attrs bound_field 'widget' default field.widget.attrs %}
                id="id_{{ bound_field.html_name }}_{{ forloop.counter0 }}"
                name="{{ bound_field.html_name }}"
                type="radio"
                class="with-gap{% if bound_field.errors %} invalid{% endif %}"
                value="{{ value|unlocalize }}"
                {% if selected %}checked{% endif %}
            {% endattrs %}/>
            <label{% attrs bound_field 'label' %}
                     for="id_{{ bound_field.html_name }}_{{ forloop.counter0 }}"
                     class="item-label"
            {% endattrs %}>{{ choice }}</label>
        </div>
        {% endfor %}{% endfor %}{% endpart %}{% part field help_text %}{% if field.help_text %}
        <small class="help-block">{{ bound_field.help_text }}</small>
        {% endif %}{% part field errors %}
        {% if bound_field.errors %}
            {% include  'djadmin/field_errors.html' %}
        {% endif %}{% endpart %}
        {% endpart %}{{ hidden_initial }}
    </div>
</div>{% endpart %}
