{% extends "base.html" %} {% from "_macros.html" import cell %} {% block title %}{{ admin.get_verbose_name_plural() }} · {{ site.title }}{% endblock %} {% block content %} {{ admin.get_verbose_name_plural() }} {{ pagination.total }} record{{ pagination.total|pluralize }} Export CSV Export JSON {% if admin.can_import and admin.can_create %}Import CSV{% endif %} {% if can_create %}+ New {{ admin.get_verbose_name() }}{% endif %} {% if flash %} {{ flash }} {% endif %} {% if admin.search_fields %} {% endif %} {% for f in filters %} {{ f.label }} {% if f.type == 'select' %} — any — {% for option in f.options %} {{ option.label }} {% endfor %} {% elif f.type == 'daterange' %} {% else %} {% endif %} {% endfor %} {% if admin.search_fields or admin.list_filter %} Apply {% endif %} {% if lens_tabs %} {% for tab in lens_tabs %} {{ tab.label }} {% endfor %} {% endif %} {% set ncols = columns|length + 1 + (1 if bulk_actions else 0) %} {% if bulk_actions %} {% for value, label in bulk_actions %} {{ label }} {% endfor %} Apply to selected {% endif %} {% if bulk_actions %}{% endif %} {% for column in columns %} {% if column in sort_state %} {% set state = sort_state[column] %} {{ column | field_label }} {% if state.active %}{% if state.ascending %}↑{% else %}↓{% endif %}{% endif %} {% else %}{{ column | field_label }}{% endif %} {% endfor %} Actions {% for row in rows %} {% if bulk_actions %}{% endif %} {% set detail_url = url_for('admin_detail', slug=admin.get_slug(), identity=row.identity) %} {% for column in columns %}{% if loop.first %}{{ cell(row.values[column]) }}{% else %}{{ cell(row.values[column]) }}{% endif %}{% endfor %} View {% else %} No records. {% endfor %} {% if bulk_actions %} {% endif %} {% if pagination.pages > 1 %} {% if pagination.page > 1 %} ← Prev {% endif %} Page {{ pagination.page }} of {{ pagination.pages }} {% if pagination.page < pagination.pages %} Next → {% endif %} {% endif %} {% endblock %}