{% load creme_core_tags %} {% with name=widget.name orders=widget.orders %} {% for group_name, group_choices, group_index in widget.optgroups %}{# TODO: manage group ? #} {% for option in group_choices %} {% with order=orders|get_value:option.value %} {% endwith %} {% endfor %}{% endfor %}
{{option.label}}
{% endwith %}