{% load cat_extra %}
{% with container_id=widget.attrs.id %}
{% for group, options, index in widget.optgroups %}{% if group %}
{% endif %}{% for widget in options %}
{% include widget.template_name %}
{% endfor %}{% if group %}
{% endif %}{% endfor %}
{% endwith %}