{% load i18n creme_ctype creme_widgets %}{% load blockjsondata from creme_core_tags %}
{% translate 'Filter' context 'creme_core-noun' as label %}{% widget_icon name='filter' label=label size='listview-filter' %}{{label}}
{% with efilter=entity_filters.selected %} {% if efilter_id %} {% widget_icon name='info' label=_('Information on the current filter') size='listview-filter-action' %} {% include 'creme_core/frags/entity-filter-summary.html' with efilter=efilter user=user %} {% endif %} {% if show_buttons %}{% ctype_for_model model as ctype %} {% widget_icon name='add' label=_('Create a custom filter') size='listview-filter-action' %} {% widget_icon name='edit' label=_('Edit this filter') size='listview-filter-action' %} {% widget_icon name='delete' label=_('Delete this custom filter') size='listview-filter-action' %} {% blockjsondata class='listview-action-data' %}{"data": {"id": "{{efilter_id}}"}}{% endblockjsondata %} {% endif %} {% endwith %}