{% for group, options, _index in widget.optgroups %} {% if group %}{% endif %} {% for option in options %}{% include option.template_name with widget=option %}{% endfor %} {% empty %} {% endfor %}
{{ group }}