{#- Every filter at once, in a drawer the Filters button opens over the list. It is one form that applies as you pick and reloads only the table, so the list stays in view and changes as you go. On a phone it covers the screen, with a button at its foot that shows the list again. -#} {% import "adminsite/_icons.html" as icons %} {% import "adminsite/_option_count.html" as counts %} {%- set names = panels|map(attribute="filter.name")|list -%} {%- set kept = request.query_params.multi_items()|list -%} {%- set counted = panels|selectattr("counted")|list -%} {#- The counts beside the options follow the search, and come in a request of their own as the drawer opens: again only once the search has changed, so a list nobody filters never counts them. -#}