From 6e2e6d462a8c540f521c6392e97686925f4d18a2 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 12 Sep 2024 14:43:55 -0700 Subject: [PATCH] 17460 refactor moduletype/devicetype to use standardized object_children --- .../dcim/inc/devicetype_buttons.html | 44 ------------------- netbox/templates/dcim/moduletype.html | 2 +- .../dcim/moduletype/component_templates.html | 2 +- 3 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 netbox/templates/dcim/inc/devicetype_buttons.html diff --git a/netbox/templates/dcim/inc/devicetype_buttons.html b/netbox/templates/dcim/inc/devicetype_buttons.html deleted file mode 100644 index 3ca8a45bb..000000000 --- a/netbox/templates/dcim/inc/devicetype_buttons.html +++ /dev/null @@ -1,44 +0,0 @@ -{% load buttons %} -{% load helpers %} -{% load i18n %} - - -{% if perms.dcim.change_devicetype %} - -{% endif %} diff --git a/netbox/templates/dcim/moduletype.html b/netbox/templates/dcim/moduletype.html index 4e4feaf7e..f57c501cf 100644 --- a/netbox/templates/dcim/moduletype.html +++ b/netbox/templates/dcim/moduletype.html @@ -12,7 +12,7 @@ {% endblock %} {% block extra_controls %} - {% include 'dcim/inc/devicetype_buttons.html' %} + {% include 'dcim/inc/moduletype_buttons.html' %} {% endblock %} {% block content %} diff --git a/netbox/templates/dcim/moduletype/component_templates.html b/netbox/templates/dcim/moduletype/component_templates.html index 32b8da41b..8f4c24478 100644 --- a/netbox/templates/dcim/moduletype/component_templates.html +++ b/netbox/templates/dcim/moduletype/component_templates.html @@ -11,7 +11,7 @@ {% endblock %} {% block extra_controls %} - {% include 'dcim/inc/devicetype_buttons.html' %} + {% include 'dcim/inc/moduletype_buttons.html' %} {% endblock %} {% block bulk_edit_controls %}