{% 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 %} {% if header_filter_values %} {% for col, val in header_filter_values.items() %} {% set flt_qs = flt_qs ~ '&cf_' ~ col ~ '=' ~ val %} {% endfor %} {% endif %}
{{ total }} record{{ 's' if total != 1 }}
{% if view.export_types %}
{% endif %} {% if view.multi_row_actions %} {% 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 view.multi_row_actions %} {% endif %} {% if row_actions or view.can_edit or view.can_delete %} {% endif %} {% for col in columns %} {% endfor %} {% if view.column_header_filters %} {% if view.multi_row_actions %} {% endif %} {% if row_actions or view.can_edit or view.can_delete %} {% endif %} {% for col in columns %} {% endfor %} {% endif %} {% include "partials/table_body.html" %}
Actions {% if col.sortable %} {{ col.label }} {% if sort == col.key %} {% endif %} {% else %} {{ col.label }} {% endif %}
{% set hf_key = namespace(val='') %} {% for hf in view.column_header_filters %} {% if hf == col.key or hf.startswith(col.key ~ '.') %} {% set hf_key.val = hf %} {% endif %} {% endfor %} {% if hf_key.val %} {% endif %}
{% if total_pages > 1 %} {% endif %} {% if filter_defs %} {% endif %} {% if view.multi_row_actions %} {% endif %} {% if view.htmx_columns %} {% endif %} {% endblock %}