{% load i18n %} {% if self.as_pdf %} {% with queryset=self.get_queryset %} {% if not self.is_list_view %}

{{ self.title }} ({{ self.count }})

{% endif %} {% if queryset.exists %} {% for column_name, lookup, sortable, to in self.column_names %} {% endfor %} {% for obj in queryset %} {% for column_name, lookup, sortable, to in self.column_names %} {% with value=obj|getattr:lookup %} {% endwith %} {% endfor %} {% endfor %}
#{{ column_name }}
{{ forloop.counter }}{{ value|print_format|safe }}
{% else %}
{% trans "No records found" %}
{% endif %} {% endwith %} {% else %}
{% with content=self|paginate %} {% if self.is_list_view or self.subset_dropdown.has_items or self.paginator_dropdown.has_items %}
{% if self.is_list_view %}

{% if self.icon %} {% endif %}{{ self.title }} ({{ self.count }})

{% endif %}
{% if not self.request.GET.popup %} {{ self.subset_dropdown }} {{ self.paginator_dropdown }} {% endif %}
{% endif %}
{% if not self.is_list_view %}
{% if self.url %} {% if self.icon %} {% endif %} {{ self.title }} {% else %} {% if self.icon %} {% endif %} {{ self.title }} {% endif %}
{% endif %}
{% if self.tabs|length > 1 and not self.readonly %} {% endif %} {% if self.form %} {{ self.form }} {% endif %} {% if self.list_total %} {% with total=self.get_total %} {% if total %}
{{ total|format }}
{% else %}
{% endif %} {% endwith %} {% endif %}
{% with list_filter=self.get_list_filter search_fields=self.get_search_fields %} {% if list_filter or search_fields %}
{% with filter_form=self.get_filter_form %} {{ filter_form.media }} {% if search_fields or list_filter %}
{% if search_fields %} {% endif %} {% for field in filter_form %} {{ field }} {% endfor %}
{% endif %} {% if list_filter1 %} {% endif %} {% endwith %}
{% endif %} {% endwith %}
{% if self.count %} {% if self.help_text %}
{{ self.help_text }}
{% endif %} {{ content }} {% else %}
{% trans "No records found" %}.
{% endif %} {% if self.subset_dropdown.actions and not self.request.GET.popup %}
{{ self.subset_dropdown }}
{% endif %}
{{ self.pagination|safe }}
{% if not self.is_list_view %} {% endif %}
{% endwith %}
{% endif %}