{% extends "base.html" %} {% block title %}{{ view.display_name }}{% endblock %} {% block page_title %}{{ view.display_name }}{% endblock %} {% block content %} {# Build filter query string for reuse in links #} {% set flt_qs = '' %} {% if active_filters %} {% for idx in range(active_filters|length) %} {% set f = active_filters[idx] %} {% set flt_qs = flt_qs ~ '&flt' ~ idx ~ '_' ~ f[0] ~ '_' ~ f[1] ~ '=' ~ f[2] %} {% endfor %} {% endif %}
{{ total }} record{{ 's' if total != 1 }}
{% if view.export_types %}
{% endif %} {% if filter_defs %} {% endif %} {% if view.can_create %} Create {% endif %}
{# Active filter badges #} {% if filter_defs and active_filters %}
{% for f in active_filters %} {{ f[3] }} {{ f[1]|replace('_', ' ') }} "{{ f[2] }}" × {% endfor %} Clear All
{% endif %} {# New filter row — hidden until a column is chosen from Add Filter #} {% if filter_defs %} {% endif %}
{% if row_actions %} {% endif %} {% for col in columns %} {% endfor %} {% include "partials/table_body.html" %}
Actions {% if col.sortable %} {{ col.label }} {% if sort == col.key %} {% endif %} {% else %} {{ col.label }} {% endif %}
{% if total_pages > 1 %} {% endif %} {% if filter_defs %} {% endif %} {% endblock %}