{% load i18n suit_list %} {% comment %} Based on Django 5.2 admin/change_list_results.html (unchanged since 4.2). Deliberate differences: - headers and cells go through suit's headers_handler / cells_handler (suit_column_attributes, suit_cell_attributes) - rows get suit's result_row_attrs (row1 / row2 + suit_row_attributes); Django renders a bare {% endcomment %} {% if result_hidden_fields %}
{# DIV for HTML validation #} {% for item in result_hidden_fields %}{{ item }}{% endfor %}
{% endif %} {% if results %}
{% for header in result_headers|headers_handler:cl %} {% endfor %} {% for result in results|cells_handler:cl %} {% if result.form and result.form.non_field_errors %} {% endif %} {% for item in result %}{{ item }}{% endfor %} {% endfor %}
{% if header.sortable and header.sort_priority > 0 %}
{% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %}
{% endif %}
{% if header.sortable %}{{ header.text|capfirst }}{% else %}{{ header.text|capfirst }}{% endif %}
{{ result.form.non_field_errors }}
{% endif %}