{% load i18n admin_urls htmx_admin_tags %} {% if cl.result_list %}
| {% for i, field_name in cl.list_display|enumerate %} {% if field_name != 'action_checkbox' %} | {{ field_name|capfirst }} {% with current_order=i|current_sort_order:cl %} {% if current_order %} {% if current_order == 'desc' %}▼{% else %}▲{% endif %} {% endif %} {% endwith %} | {% endif %} {% endfor %} {% if list_editable_htmx %}{% translate "Actions" %} | {% endif %}
|---|---|---|
| {% for field_name in cl.list_display %} {% if field_name != 'action_checkbox' %} | {% if field_name in list_editable_htmx %} {% include "htmx_admin/partials/table_cell.html" with object=result field=field_name value=result|get_field_value:field_name is_editable=True %} {% else %} {{ result|get_field_value:field_name }} {% endif %} | {% endif %} {% endfor %} {% if list_editable_htmx %}{% endif %} |
{% translate "0 results" %}
{% endif %}