{% extends 'base/layout.html' %} {% load buttons %} {% load helpers %} {% load render_table from django_tables2 %} {% load static %} {% block controls %}
{% block extra_controls %}{% endblock %} {% if permissions.add %} {% add_button 'plugins:axians_netbox_pdu:pduconfig_add' %} {% endif %} {% if permissions.add %} {% import_button 'plugins:axians_netbox_pdu:pduconfig_import' %} {% endif %}
{% endblock controls %} {% block tabs %} {% endblock tabs %} {% block content-wrapper %}
{% if filter_form %} {% applied_filters filter_form request.GET %} {% endif %} {% include 'inc/table_controls_htmx.html' with table_modal="RecordTable_config" %}
{% csrf_token %}
{% render_table table 'inc/table.html' %}
{% if permissions.delete %} {% with bulk_delete_url='plugins:axians_netbox_pdu:pduconfig_bulk_delete' %}
{% block bulk_buttons %}{% endblock %} {% if bulk_delete_url and permissions.delete %} {% endif %}
{% endwith %} {% endif %}
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
{% if filter_form %}
{% include 'inc/filter_list.html' %}
{% endif %}
{% table_config_form table table_name="RecordTable" %} {% endblock content-wrapper %}