diff --git a/netbox/templates/dcim/interface.html b/netbox/templates/dcim/interface.html index 410909914..b18a6380b 100644 --- a/netbox/templates/dcim/interface.html +++ b/netbox/templates/dcim/interface.html @@ -359,11 +359,13 @@ {% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %} -
-
- {% include 'inc/panel_table.html' with table=vlan_translation_table heading="VLAN Translation" %} + {% if object.vlan_translation_policy %} +
+
+ {% include 'inc/panel_table.html' with table=vlan_translation_table heading="VLAN Translation" %} +
-
+ {% endif %} {% if object.is_bridge %}
diff --git a/netbox/templates/ipam/vlantranslationrule.html b/netbox/templates/ipam/vlantranslationrule.html index a9a44f46c..32e1883c3 100644 --- a/netbox/templates/ipam/vlantranslationrule.html +++ b/netbox/templates/ipam/vlantranslationrule.html @@ -16,11 +16,11 @@ {% trans "Local VID" %} - {{ object.local_vid|placeholder }} + {{ object.local_vid }} {% trans "Remote VID" %} - {{ object.remote_vid|placeholder }} + {{ object.remote_vid }}
diff --git a/netbox/templates/virtualization/vminterface.html b/netbox/templates/virtualization/vminterface.html index 8017044a3..13cc8aa2f 100644 --- a/netbox/templates/virtualization/vminterface.html +++ b/netbox/templates/virtualization/vminterface.html @@ -104,11 +104,13 @@ {% include 'inc/panel_table.html' with table=vlan_table heading="VLANs" %}
-
-
- {% include 'inc/panel_table.html' with table=vlan_translation_table heading="VLAN Translation" %} +{% if object.vlan_translation_policy %} +
+
+ {% include 'inc/panel_table.html' with table=vlan_translation_table heading="VLAN Translation" %} +
-
+{% endif %}
{% include 'inc/panel_table.html' with table=child_interfaces_table heading="Child Interfaces" %}