diff --git a/netbox/dcim/views.py b/netbox/dcim/views.py index a489fdbfa..210b8a27c 100644 --- a/netbox/dcim/views.py +++ b/netbox/dcim/views.py @@ -2541,6 +2541,7 @@ class ConsoleConnectionsListView(generic.ObjectListView): filterset_form = forms.ConsoleConnectionFilterForm table = tables.ConsoleConnectionTable template_name = 'dcim/connections_list.html' + action_buttons = ('export',) def extra_context(self): return { @@ -2554,6 +2555,7 @@ class PowerConnectionsListView(generic.ObjectListView): filterset_form = forms.PowerConnectionFilterForm table = tables.PowerConnectionTable template_name = 'dcim/connections_list.html' + action_buttons = ('export',) def extra_context(self): return { @@ -2567,6 +2569,7 @@ class InterfaceConnectionsListView(generic.ObjectListView): filterset_form = forms.InterfaceConnectionFilterForm table = tables.InterfaceConnectionTable template_name = 'dcim/connections_list.html' + action_buttons = ('export',) def extra_context(self): return { diff --git a/netbox/templates/dcim/connections_list.html b/netbox/templates/dcim/connections_list.html index 3202f9a94..5dbea9129 100644 --- a/netbox/templates/dcim/connections_list.html +++ b/netbox/templates/dcim/connections_list.html @@ -1,37 +1,15 @@ -{% extends 'base/layout.html' %} +{% extends 'generic/object_list.html' %} {% load buttons %} {% load helpers %} {% load render_table from django_tables2 %} {% block title %}{{ title }}{% endblock %} -{% block extra_controls %}{% export_button content_type %}{% endblock %} - -{% block tabs %} -
-{% endblock tabs %} - {% block content-wrapper %}