{% load i18n admin_static %} {% if result_hidden_fields %}
{% for item in result_hidden_fields %}{{ item }}{% endfor %}
{% endif %} {% if results %} {% for header in result_headers %} {% if header.sortable %}{{ header.text|capfirst }}{% else %}{{ header.text|capfirst }}{% endif %} {% if header.sortable %} {% if header.sort_priority > 0 %}
   {% if header.ascending %}{% else %}{% endif %} {% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %}
{% endif %} {% endif %} {% endfor %}
{% for result in results %} {% if result.form.non_field_errors %} {% endif %} {% for item in result %}{{ item }}{% endfor %} {% endfor %}
{{ result.form.non_field_errors }}
{% endif %}