{% if widget.label %}{% endif %} {% with id=widget.attrs.id %} {% for group, options, index in widget.optgroups %} {% if group %}

{{ group }} {% endif %} {% for option in options %} {% if widget.is_vertical %}

{% endif %} {% include option.template_name with widget=option %} {% if widget.is_vertical %}
{% endif %} {% endfor %} {% if group %}

{% endif %} {% endfor %}

{% endwith %}