{% load i18n static simpletags simple_ext_tags %} {% if result_hidden_fields %}
{# DIV for HTML validation #} {% for item in result_hidden_fields %}{{ item }}{% endfor %}
{% endif %}
{% for header in result_headers %} {% endfor %} {% for result in results %} {% if result.form.non_field_errors %} {% endif %} {% for item in result %} {% with instance=result.form.instance %} {% with field_info=item|table_item_type:instance %} {% if field_info.field_type == 'boolean' %} {% elif field_info.field_type == 'image' %} {% elif field_info.field_type == 'tag' %} {% else %} {{ item }} {% endif %} {% endwith %} {% endwith %} {% endfor %} {% endfor %}
{% if header.sortable %} {% if header.sort_priority > 0 %}
{% if num_sorted_fields > 1 %}{{ header.sort_priority }}{% endif %}
{% endif %} {% endif %}
{% if header.sortable %} {{ header.text|capfirst }}{% else %} {{ header.text|capfirst }}{% endif %}
{{ result.form.non_field_errors }}
{% if field_info.editable %} {% else %} {{ field_info.value|yesno:_("Yes,No") }} {% endif %} {% if field_info.value %} {% else %} {% trans "No Image" %} {% endif %} {{ field_info.display_name }}