{% load i18n %} {% load staticfiles %} {% load autocomplete_light_tags %} {% load url from future %} {% block widget_open %} {% endblock %} {% block deck %} {# a deck that should contain the list of selected options #} {{ choices }} {% for choice in autocomplete.choices_for_values %} {{ choice|autocomplete_light_choice_html:autocomplete }} {% endfor %} {% endblock %} {% block input %} {# a text input, that is the 'autocomplete input' #} {% endblock %} {% block add_another %} {# A link to add a new choice using a popup #} {% if autocomplete.add_another_url_name %} {% endif %} {% endblock %} {% block select %} {# a hidden select, that contains the actual selected values #} {% endblock %} {% block remove_template %} {# a hidden div that serves as template for the 'remove from deck' button #} {% endblock %} {% block choice_template %} {% endblock %} {% block widget_close %} {% endblock %}