{% 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 fk, fv in active_filters.items() %} {% set flt_qs = flt_qs ~ '&flt_' ~ fk ~ '=' ~ fv %} {% endfor %} {% endif %}
{{ total }} record{{ 's' if total != 1 }}
{% if view.export_types %}
{% endif %} {% if view.can_create %} Create {% endif %}
{% if filter_options %}
Filters: {% for filt_key, filt in filter_options.items() %} {% endfor %} {% if active_filters %} Clear {% endif %}
{% endif %}
{% for col in columns %} {% endfor %} {% if row_actions %} {% endif %} {% include "partials/table_body.html" %}
{% if col.sortable %} {{ col.label }} {% if sort == col.key %} {% endif %} {% else %} {{ col.label }} {% endif %} Actions
{% if total_pages > 1 %} {% endif %} {% if filter_options %} {% endif %} {% endblock %}