{% extends 'netbox_dns/object.html' %} {% load helpers %} {% load plugins %} {% load render_table from django_tables2 %} {% load view_helpers %} {% load perms %} {% block content %}
Name Server
Name {{ object.name }}
{% if settings.VERSION < '3.1.0' %} {% include 'extras/inc/tags_panel.html' with tags=object.tags.all url='plugins:netbox_dns:nameserver_list' %} {% else %} {% include 'inc/panels/tags.html' with tags=object.tags.all url='plugins:netbox_dns:nameserver_list' %} {% endif %}
Zones
{# "Select all" form #} {% if zone_table.paginator.num_pages > 1 %} {% with bulk_edit_url="plugins:netbox_dns:zone_bulk_edit" bulk_delete_url="plugins:netbox_dns:zone_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="ZoneTable_config" %} {% else %} {% include 'inc/table_controls_htmx.html' with table_modal="ZoneTable_config" %} {% endif %}
{% csrf_token %} {# Object table #}
{% render_table zone_table 'inc/table.html' %}
{# Form buttons #} {% if permissions.change or permissions.delete %} {% with bulk_edit_url="plugins:netbox_dns:zone_bulk_edit" bulk_delete_url="plugins:netbox_dns:zone_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=zone_table.paginator page=zone_table.page %}
{# Table config form #} {% table_config_form zone_table table_name="ZoneTable" %} {% endblock %}