{% load alliance_platform.ui %} {# StaticFormRenderer renders this in place of Django's select widget template, which Select, SelectMultiple and NullBooleanSelect use. It writes the options as Django's select_option.html does, selected attribute included, unless the widget has an option template of its own #} {% ui "select" props=widget.attrs|merge_props:extra_widget_props name=widget.name %}{% for group_name, group_choices, group_index in widget.optgroups %}{% if group_name %} {% endif %}{% for option in group_choices %}{% if option.template_name == "django/forms/widgets/select_option.html" %} {% else %} {% include option.template_name with widget=option %}{% endif %}{% endfor %}{% if group_name %} {% endif %}{% endfor %} {% endui %}