{% extends "admin/base.html" %}
{% use_elements %}
{% block header_scripts %}
{% endblock %}
{% block content %}
{% htmxfragment "list" %}
{{ page.paginator.count }} result{{ page.paginator.count|pluralize }}
{% endif %}
| {% endif %} {% for field in fields %} {% if order_by_field is defined %} |
{% if table_style == "preview" %}
{{ get_field_label(field) }}
{% else %}
{{ get_field_label(field) }}
{% if field == order_by_field %}
{% if order_by_direction == "-" %}
▼
{% else %}
▲
{% endif %}
{% else %}
▼
{% endif %}
{% endif %}
|
{% else %}
{{ get_field_label(field) }} | {% endif %} {% endfor %} {# A th that spans any links columns that will be added #}|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {% endif %} {% for field in fields %} {# Make every column clickable if it doesn't contain a link already #} |
{% set value = format_field_value(object, field) %}
{% include get_field_value_template(object, field, value) with context %}
|
{% endfor %}
{% set object_links = get_object_links(object) %}
{% if object_links %}
{% endif %} | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{% if search_query %} No results for "{{ search_query }}" {% else %} No items yet {% endif %}