{% if widget.label and not is_multiwidget %}{{ widget.label }}{% endif %} {% for group_name, group_choices, group_index in widget.optgroups %} {% if group_name %} {% endif %} {% for option in group_choices %} {% include "material_widgets/widgets/material_select_option_nojs.html" with widget=option first_item=forloop.parentloop.first has_label=widget.label is_group=group_name %} {% endfor %} {% if group_name %} {% endif %} {% endfor %}