{# TODO: this template is not jinja2 compatible and also it's ugly #}
{% for choice in field.choice_tuples %}
    {# 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.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>
    {% if not forloop.last %}<br>{% endif %}
{% endfor %}
