{% for group, options, index in widget.subwidgets.0.optgroups %}
{% for option in options %}
{% include option.template_name with widget=option %}
{% endfor %}
{% if index == 0 %}
{% endif %}
{% if index == 1 %}
{% include widget.subwidgets.2.template_name with widget=widget.subwidgets.2 %}
{% include widget.subwidgets.1.template_name with widget=widget.subwidgets.1 %}
{% endif %}
{% if index == 2 %}
{% include widget.subwidgets.3.template_name with widget=widget.subwidgets.3 %}
{% endif %}