{% load static %} {% if widget.name == 'btn_context' %}
{% for group, options, index in widget.optgroups %} {% for option in options %}
{% include option.template_name with widget=option %}
{% endfor %} {% endfor %}
{% endif %} {# Available Variables #} {# {{ option.value }}: {{ option.label }} #} {# selected: {{ option.value }} #}