{% load autocomplete %} {{ item.label|search_highlight:search }} {% if toggle is not None %}
{% include "./values.html" %}
{% if toggle|length > 0 %} {% for item in toggle %} {% with item=item.label %} {% use_string "item_selected" custom_strings %} {% endwith %} {% endfor %} {% else %} {% use_string "nothing_selected" custom_strings %} {% endif %}
{% if multiselect %} {% include "./ac_container.html" with selected_items=toggle %} {% else %} {% if item.selected %} {% include "./textinput.html" with selected_items=item_as_list swap_oob=True %} {% else %} {% include "./textinput.html" with swap_oob=True %} {% endif %} {% for item in toggle %} {% if not item.selected %} {% include "autocomplete/item.html" with toggle=None swap_oob=True %} {% endif %} {% endfor %} {% endif %} {% endif %}