{% extends 'netbox_dns/zone_base.html' %} {% load helpers %} {% load render_table from django_tables2 %} {% block content-wrapper %}
{# Object list #}
{# Applied filters #} {% if filter_form %} {% applied_filters filter_form request.GET %} {% endif %} {# "Select all" form #} {% if table.paginator.num_pages > 1 %} {% with bulk_edit_url="plugins:netbox_dns:record_bulk_edit" bulk_delete_url="plugins:netbox_dns:record_bulk_delete" %}
{% csrf_token %}
{% if bulk_edit_url and permissions.change %} {% endif %} {% if bulk_delete_url and permissions.delete %} {% endif %}
{% endwith %} {% endif %} {# Object table controls #} {% if settings.VERSION < '3.1.2' %} {% include 'inc/table_controls.html' with table_modal="ZoneRecordTable_config" %} {% else %} {% include 'inc/table_controls_htmx.html' with table_modal="ZoneRecordTable_config" %} {% endif %}
{% csrf_token %} {# Object table #}
{% render_table table 'inc/table.html' %}
{# Form buttons #} {% if permissions.change or permissions.delete %} {% with bulk_edit_url="plugins:netbox_dns:record_bulk_edit" bulk_delete_url="plugins:netbox_dns:record_bulk_delete" %}
{% block bulk_buttons %}{% endblock %} {% if bulk_edit_url and permissions.change %} {% endif %} {% if bulk_delete_url and permissions.delete %} {% endif %}
{% endwith %} {% endif %}
{# Paginator #} {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
{# Filter form #} {% if filter_form %}
{% include 'inc/filter_list.html' %}
{% endif %}
{# Table config form #} {% table_config_form table table_name="ZoneRecordTable" %} {% endblock content-wrapper %}