{% load i18n %}{% load lt from creme_core_tags %}{% spaceless %} {% with view_less=widget.view_less creation_allowed=widget.creation_allowed creation_url=widget.creation_url %} {% if widget.choice_count == 0 and not creation_allowed %} {% translate 'No choice available.' %} {% else %}
{% include 'django/forms/widgets/select.html' %}
{% if widget.checkall %} {% with checkall_hidden=widget.choice_count|lt:widget.MIN_CHECKALL_COUNT %} {% translate 'Check all' %} {% translate 'Check none' %} {% endwith %} {% endif %} {% if creation_url %} {% if creation_allowed %} {{widget.creation_label}} {% else %} {{widget.creation_label}} {% endif %} {% endif %} {% if widget.filter_type %} {% if widget.filter_type == 'filter' %}{% translate 'Filter' context 'creme_core-noun' as filter_name %} {% else %} {% translate 'Search' context 'creme_core-noun' as filter_name %}{% endif %} {% endif %}
{% if widget.view_less %} {% endif %}
{% endif %} {% endwith %} {% endspaceless %}