{% extends "generic/object_list.html" %} {% load helpers %} {% load i18n %} {% load render_table from django_tables2 %} {% comment %} The Scripts list as NetBox's table, or grouped by Project. The grouped content replaces the content block, so its panes keep the ids the tabs block targets. {% endcomment %} {% block extra_controls %}
{% trans "Table" %} {% trans "Grouped" %}
{% endblock extra_controls %} {% block content %} {% if grouped %}
{% if filter_form %} {% applied_filters model filter_form request.GET %} {% endif %} {% with preferences|get_key:"pagination.placement" as paginator_placement %} {% if paginator_placement == "top" or paginator_placement == "both" %} {% include "inc/paginator.html" with paginator=table.paginator page=table.page placement="top" %} {% endif %} {# render_table gives the row actions the request they read permissions from. #} {% render_table table "netbox_scripts/inc/grouped_scripts.html" %} {% if paginator_placement != "top" %} {% include "inc/paginator.html" with paginator=table.paginator page=table.page %} {% endif %} {% endwith %}
{% if filter_form %}
{% include "inc/filter_list.html" %}
{% endif %} {% else %} {{ block.super }} {% endif %} {% endblock content %}