{% load i18n %}{% load eq from creme_core_tags %} {% with id=widget.attrs.id name=widget.name sub_choices=widget.subfield_choices %} {% if sub_choices %} {% endif %}
{% include 'creme_core/forms/widgets/select.html' with widget=widget.column_select %} {% with hide_select=sub_choices|length|eq:1 %} {# The 'select' tag is annoying if there is only one option #} {% if not hide_select %}{% translate 'Search by:' %}{% endif %} {% with sel=widget.searched_subfield %} {% endwith %} {% if widget.propose_creation %}  {% endif %} {% endwith %}  
{% endwith %}