{% if permissions.add and 'add' in action_buttons %}
{% add_button content_type.model_class|validated_viewname:"add" verbose_name=model|meta:"verbose_name"|bettertitle %}
{% elif permissions.add and 'import' in action_buttons %}
{% elif 'export' in action_buttons %}
{% endif %}
{% if permissions.add and 'import' in action_buttons %}
{% block import_list_element %}
{% job_import_button content_type list_element=True%}
{% endblock import_list_element %}
{% endif %}
{% if permissions.add and 'import' in action_buttons and 'export' in action_buttons %}
{% endif %}
{% if 'export' in action_buttons %}
{% block export_list_element %}
{% export_button content_type list_element=True %}
{% endblock export_list_element %}
{% endif %}
{% comment %} TODO: 3.0 Remove legacy import_button and export button {% endcomment %}
{% if permissions.add and 'import' in action_buttons %}
{% block import_button %}
{% endblock import_button %}
{% endif %}
{% if 'export' in action_buttons %}
{% block export_button %}
{% endblock export_button %}
{% endif %}
{% block title %}
{{ title }}
{% if current_saved_view %}
—
{% if new_changes_not_applied %}
{{ current_saved_view.name }}
{% else %}
{{ current_saved_view.name }}
{% endif %}
{% endif %}
{% endblock %}
{% block header_extra %}{% endblock %}
{% if filter_params %}
Filters:
{% for field in filter_params %}
{{ field.display }}:×
{% for value in field.values %}
×{{ value.display }}
{% endfor %}
{% endfor %}
{% endif %}
{% block table %}
{% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %}
{% if permissions.change or permissions.delete %}
{% else %}
{% include table_template|default:'panel_table.html' %}
{% endif %}
{% endwith %}
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}