{# Shared filter-bar element. Rendered both inline in the toolbar and standalone in filters.html, and re-rendered on its own for HTMX out-of-band swaps so that faceted option lists can refresh against the current filter/search subset. Context vars: fb — the GridViewFilters block (schema/state/auto_apply/facets/fragment_*) host — render host (translate) fb_search — optional {param, value} → emits a hidden search input (toolbar use) fb_oob — when truthy, marks the element for HTMX outerHTML out-of-band swap #}
{% if fb_search %} {% endif %} {% for filter in fb.schema %} {% set selected = fb.state.values.get(filter.param, ()) if fb.state else () %}
{% if filter.select_all %} {% endif %} {% for opt in filter.options %} {% endfor %}
{% endfor %}