{# TODO: this template is not jinja2 compatible and also it's ugly #}
{% for choice in field.choice_tuples %}
    <div class="field">
        <div class="ui radio checkbox">
            {# TODO: rendering field.input.attrs here seems bad.. we already render some of them manually so won't this create duplicates? #}
            <input type="radio" value="{{ choice.1 }}" name="{{ field.iommi_path }}" id="{{ field.input.attrs.id }}_{{ forloop.counter }}" {{ field.input.attrs }} {% if choice.3 %}checked{% endif %}/>
            <label for="{{ field.input.attrs.id }}_{{ forloop.counter }}">{{ choice.2 }}</label>
        </div>
    </div>
{% endfor %}
