From fab90ecbe55b62a6ccc8da1199775c2355d663aa Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Wed, 23 Mar 2022 13:50:03 -0400 Subject: [PATCH] Closes #8803: Enable adding components from module view --- netbox/templates/dcim/device/base.html | 64 +++++--------------------- netbox/templates/dcim/module.html | 33 +++++++++++++ 2 files changed, 45 insertions(+), 52 deletions(-) diff --git a/netbox/templates/dcim/device/base.html b/netbox/templates/dcim/device/base.html index ff139ee4a..ea67154b1 100644 --- a/netbox/templates/dcim/device/base.html +++ b/netbox/templates/dcim/device/base.html @@ -16,79 +16,39 @@ {% block extra_controls %} {% if perms.dcim.change_device %} diff --git a/netbox/templates/dcim/module.html b/netbox/templates/dcim/module.html index 632e37c2c..525d39534 100644 --- a/netbox/templates/dcim/module.html +++ b/netbox/templates/dcim/module.html @@ -10,6 +10,39 @@ {% endblock %} +{% block extra_controls %} + {% if perms.dcim.change_module %} + + {% endif %} +{% endblock %} + {% block content %}