{#- The filters in use, as chips under the toolbar. A chip opens the filters drawer at its filter, and its cross takes the filter off. The table sends the row again with every reload, so it never goes stale. -#} {% import "adminsite/_icons.html" as icons %}
{%- if chips %} {% for panel in chips %} {% set name = panel.filter.name %} {% set panel_id = "filter-" ~ name|replace(".", "-") %} {{ icons.icon("x", 14) }} {% endfor %} {#- Every filter off, the search, the sort and the columns kept. -#} {% set cleared = {"page": None, "after": None, "before": None} %} {% for panel in panels %}{% set ignored = cleared.update({panel.filter.name: None}) %}{% endfor %} {{ _('Clear all') }} {% endif -%}