From 04cc43b2f0858a1f3fb7044a58e4fd33976d8f56 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Fri, 30 Apr 2021 17:17:56 -0700 Subject: [PATCH] ensure 'Create & Assign IP Address' button is only shown when the component_type is 'interface' --- netbox/templates/dcim/device_component_add.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/templates/dcim/device_component_add.html b/netbox/templates/dcim/device_component_add.html index 6287330f6..8fb78e4ff 100644 --- a/netbox/templates/dcim/device_component_add.html +++ b/netbox/templates/dcim/device_component_add.html @@ -20,7 +20,7 @@
{% block buttons %} Cancel - {% if perms.ipam.add_ipaddress %} + {% if component_type == 'interface' and perms.ipam.add_ipaddress %}