{% with id=widget.attrs.id %} {% for group, options, index in widget.optgroups %} {% if group is not null %}
{% comment %} {% endcomment %}

{% endif %} {% for option in options %}
{% include "./input_option.html" with widget=option %}
{% endfor %} {% if group is not null %}
{% endif %} {% endfor %} {% endwith %}