{% load i18n %} {% if result_hidden_fields %}
{# DIV for HTML validation #} {% for item in result_hidden_fields %}{{ item }}{% endfor %}
{% endif %} {% if results %}
{% for header in result_headers %} {% endfor %} {% for result in results %} {% if result.form.non_field_errors %} {% endif %} {% for item in result %}{{ item }}{% endfor %} {% endfor %}
{% if header.sortable %} {% if header.sort_priority > 0 %} {% endif %} {% endif %}
{% if header.sortable %} {{ header.text|capfirst }} {% if header.class_attrib %}{% endif %} {% else %} {{ header.text|capfirst }} {% endif %}
{{ result.form.non_field_errors }}
{% endif %}