From c6e3e7424af1bd2ad0fa40d2146fb26fe15396a6 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Wed, 11 Sep 2024 15:03:09 -0700 Subject: [PATCH] 17460 make ModuleType / DeviceType bulk buttons consistent --- .../dcim/devicetype/component_templates.html | 15 +-------------- .../dcim/moduletype/component_templates.html | 16 +++++++++------- 2 files changed, 10 insertions(+), 21 deletions(-) diff --git a/netbox/templates/dcim/devicetype/component_templates.html b/netbox/templates/dcim/devicetype/component_templates.html index df9789c00..291c7c988 100644 --- a/netbox/templates/dcim/devicetype/component_templates.html +++ b/netbox/templates/dcim/devicetype/component_templates.html @@ -18,21 +18,8 @@ {% endif %} {% endwith %} {% endblock bulk_edit_controls %} - -{% block bulk_extra_controls %} - {{ block.super }} - {% if request.user|can_add:child_model %} -
- - - {% trans "Add" %} {{ title }} - -
- {% endif %} -{% endblock bulk_extra_controls %} - diff --git a/netbox/templates/dcim/moduletype/component_templates.html b/netbox/templates/dcim/moduletype/component_templates.html index 9c4d59cba..a45effa8a 100644 --- a/netbox/templates/dcim/moduletype/component_templates.html +++ b/netbox/templates/dcim/moduletype/component_templates.html @@ -13,14 +13,16 @@