{% for group, options, index in widget.optgroups %} {% comment %}Semantic has no option groups! {% if group %}
  • {{ group }}{% endif %} {% endcomment %} {% for option in options %} {% include option.template_name with widget=option %} {% endfor %} {% comment %}Semantic has no option groups! {% if group %}
  • {% endif %} {% endcomment %} {% endfor %}