{% if widget.label and not is_multiwidget %}{% endif %}
{% for group_name, group_choices, group_index in widget.optgroups %} {% if forloop.first %} {{ group_name|default:group_choices.0.label }}
    {% endif %} {% if group_name %}
      {{ group_name }} {% endif %} {% for option in group_choices %} {% include option.template_name with widget=option first_item=forloop.parentloop.first has_label=widget.label is_group=group_name %} {% endfor %} {% if group_name %}
    {% endif %} {% if forloop.last %}
{% endif %} {% endfor %}
{% include "material_widgets/widgets/material_select_nojs.html" with is_multiwidget=True %}