{% extends "base.html" %} {% block content %}

{{ model_name }}

{{ total }} record(s){% if active_filter_count %} · {{ active_filter_count }} filter(s) active{% endif %}
Export CSV Export JSON {% if can_add %}+ Add {{ model_name }}{% endif %}
{% if search_fields_present is not defined %}{% set search_fields_present = true %}{% endif %} {% if filters %}
{% for f in filters %}
{% if f.type == "bool" or f.type == "relation" %} {% else %} {% endif %}
{% endfor %} {% if active_filter_count %}Clear filters{% endif %}
{% endif %}
{% for col in columns %} {% endfor %} {% for row in rows %} {% for cell in row.cells %} {% set cidx = loop.index0 %} {% endfor %} {% endfor %} {% if not rows %} {% endif %}
{{ col }}{% if sort == col %}{% if dir == 'asc' %} ▲{% else %} ▼{% endif %}{% endif %}
{% if cell.type == "fk" and cell.link %} {{ cell.value }} {% elif cell.type == "m2m" %}
{# ``cell.items`` would resolve to the dict method, not the key. #} {% for item in cell["items"] %}{% if item[1] %}{{ item[0] }}{% else %}{{ item[0] }}{% endif %}{% endfor %} {% if not cell["items"] %}{% endif %}
{% elif cell.type == "password" %} •••••••• {% else %} {% if columns[cidx] in link_cols and row.pk and cell.value != "—" %} {{ cell.value }} {% else %} {{ cell.value }} {% endif %} {% endif %}
View {% if can_change %}Edit{% endif %} {% if can_delete %}Delete{% endif %}

No {{ model_name }} found

{% if page_range %} {% endif %} {% endblock %}