From 7ab00c6c070adf73e17db2ee685cf9c6d03edd19 Mon Sep 17 00:00:00 2001 From: "D01\\StephenM" Date: Tue, 4 Apr 2017 10:21:26 +0100 Subject: [PATCH] Only show Custom Fields on IP Address Assign Page if custom fields are set against the ip address --- netbox/templates/dcim/ipaddress_assign.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/netbox/templates/dcim/ipaddress_assign.html b/netbox/templates/dcim/ipaddress_assign.html index 3312a39c3..e8596158c 100644 --- a/netbox/templates/dcim/ipaddress_assign.html +++ b/netbox/templates/dcim/ipaddress_assign.html @@ -43,12 +43,14 @@ {% render_field form.set_as_primary %} + {% if form.custom_fields %}
Custom Fields
{% render_custom_fields form %}
+ {% endif %}