{% extends 'base/layout.html' %} {% load buttons %} {% load helpers %} {% load render_table from django_tables2 %} {% load static %} {% block controls %}
{% block extra_controls %}{% endblock %} {% if perms.axians_netbox_pdu.add_pduconfig %} Add {% endif %}
{% endblock controls %} {% block tabs %} {% endblock tabs %} {% block content-wrapper %}
{% if filter_form %} {% applied_filters model filter_form request.GET %} {% endif %} {% include 'inc/table_controls_htmx.html' with table_modal="RecordTable_config" %}
{% csrf_token %}
{% render_table table 'inc/table_htmx.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 %}