{% if component.as_pdf %} {% set queryset=component.get_queryset() %} {% if not component.is_list_view %}

{{ component.title }} ({{ component.count }})

{% endif %} {% if queryset.exists() %} {% for column_name, lookup, sortable, to in component.column_names %} {% endfor %} {% for obj in queryset %} {% for column_name, lookup, sortable, to in component.column_names %} {% set value=objcomponent(lookup) %} {% endfor %} {% endfor %}
#{{ column_name }}
{{ loop.index }}{{ value|print_format|safe }}
{% else %}
{{ _("No records found") }}
{% endif %} {% else %}
{% set content=component|paginate %}
{% if not component.is_list_view %}
{% if component.url %} {% if component.icon %} {% endif %} {{ component.title }} {% else %} {% if component.icon %} {% endif %} {{ component.title }} {% endif %} {% if component.mobile %}
{{ component.queryset_dropdown|safe }} {{ component.class_dropdown|safe }}
{% else %} {% endif %}
{% endif %}
{% if not component.mobile or component.is_list_view %} {% if component.is_list_view or component.queryset_dropdown.has_items or component.class_dropdown.has_items %}
{% if component.is_list_view %}

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

{% endif %}
{% if not component.request.GET.popup %} {{ component.queryset_dropdown|safe }} {{ component.class_dropdown|safe }} {% endif %}
{% endif %} {% endif %} {% if component.tabs|length > 1 %} {% endif %} {% if component.form %} {{ component.form }} {% endif %} {% if component.list_total %} {% set total=component.get_total() %} {% if total %}
{{ total|format }}
{% else %}
{% endif %} {% endif %}
{% set list_filter=component.get_list_filter() %} {% set search_fields=component.get_search_fields() %} {% if list_filter or search_fields %}
{% set filter_form=component.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 %}
{% endif %}
{% if component.count %} {% if component.help_text %}
{{ component.help_text }}
{% endif %} {{ content|safe }} {% else %}
{{ _("No records found") }}.
{% endif %} {% if component.queryset_dropdown.actions and not component.request.GET.popup %}
{{ component.queryset_dropdown|safe }}
{% endif %}
{{ component.pagination|safe }}
{% if not component.is_list_view %} {% endif %}
{% endif %}