diff --git a/netbox/templates/generic/object_list.html b/netbox/templates/generic/object_list.html index a927235e1..e2552c7c8 100644 --- a/netbox/templates/generic/object_list.html +++ b/netbox/templates/generic/object_list.html @@ -82,41 +82,43 @@ {# Object table controls #} {% include 'inc/table_controls.html' with table_modal="ObjectTable_config" %} - {# Object table #} -
-
- {% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %} - {% if permissions.change or permissions.delete %} -
- {% csrf_token %} - -
- {% render_table table 'inc/table.html' %} -
-
-
- {% block bulk_buttons %}{% endblock %} - {% if bulk_edit_url and permissions.change %} - - {% endif %} - {% if bulk_delete_url and permissions.delete %} - - {% endif %} -
-
-
- {% else %} -
- {% render_table table 'inc/table.html' %} -
- {% endif %} - {% endwith %} +
+ {% csrf_token %} + + + {# Object table #} +
+
+
+ {% render_table table 'inc/table.html' %} +
+
-
+ + {# Form buttons #} + {% if permissions.change or permissions.delete %} + {% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"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=table.paginator page=table.page %}
diff --git a/netbox/templates/inc/table_controls.html b/netbox/templates/inc/table_controls.html index ec46cd535..d110326ce 100644 --- a/netbox/templates/inc/table_controls.html +++ b/netbox/templates/inc/table_controls.html @@ -1,19 +1,4 @@
-
- {% if request.user.is_authenticated and table_modal %} -
- -
- {% endif %} -
+
+ {% if request.user.is_authenticated and table_modal %} + + {% endif %} +