From e4af9ebc6f0cc287b780caaec35459de98d7d371 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Wed, 17 Mar 2021 22:25:20 -0700 Subject: [PATCH] fix import/export styles --- netbox/templates/generic/object_list.html | 19 ++++++++----------- .../utilities/templates/buttons/export.html | 6 +++--- .../utilities/templates/buttons/import.html | 6 +----- 3 files changed, 12 insertions(+), 19 deletions(-) diff --git a/netbox/templates/generic/object_list.html b/netbox/templates/generic/object_list.html index 35a1e630c..01694abf6 100644 --- a/netbox/templates/generic/object_list.html +++ b/netbox/templates/generic/object_list.html @@ -8,19 +8,16 @@ {% block controls %}
- {% if permissions.add and 'add' in action_buttons %} + {% if permissions.add and 'add' in action_buttons %} {% add_button content_type.model_class|validated_viewname:"add" %} {% endif %} -
-
- {% if permissions.add and 'import' in action_buttons %} - {% import_button content_type.model_class|validated_viewname:"import" %} - {% endif %} - {% if 'export' in action_buttons %} - {% export_button content_type %} - {% endif %} -
-
+ {% if permissions.add and 'import' in action_buttons %} + {% import_button content_type.model_class|validated_viewname:"import" %} + {% endif %} + {% if 'export' in action_buttons %} + {% export_button content_type %} + {% endif %} +
{% if request.user.is_authenticated and table_config_form %} diff --git a/netbox/utilities/templates/buttons/export.html b/netbox/utilities/templates/buttons/export.html index 4256b1a73..f72e39f2a 100644 --- a/netbox/utilities/templates/buttons/export.html +++ b/netbox/utilities/templates/buttons/export.html @@ -1,10 +1,10 @@ -
+