{% load static %} {% with id=widget.attrs.id %}
{% for group, options, index in widget.optgroups %} {% for option in options %} {% include option.template_name with widget=option %} {% endfor %} {% endfor %}
{% for group, options, index in widget.optgroups %} {% for option in options %} {% if option.selected and option.value != '' %}

{{option.label}}

{% elif option.selected and option.value == '' %}

Select Icon

{% endif %} {% endfor %} {% endfor %}
{% endwith %}