diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 2aa1666c8..8466f2bc0 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -402,7 +402,7 @@ {% endif %} - +
{% for iface in interfaces %} {% include 'dcim/inc/interface.html' with selectable=True %} {% empty %} @@ -606,9 +606,9 @@ $(".interface-toggle").click(function() { $('button.toggle-ips').click(function() { var selected = $(this).attr('selected'); if (selected) { - $('table.component-list tr.ipaddress').hide(); + $('#interfaces_table tr.ipaddress').hide(); } else { - $('table.component-list tr.ipaddress').show(); + $('#interfaces_table tr.ipaddress').show(); } $(this).attr('selected', !selected); $(this).children('span').toggleClass('glyphicon-check glyphicon-unchecked'); diff --git a/netbox/templates/dcim/inc/consoleport.html b/netbox/templates/dcim/inc/consoleport.html index e6c816780..5352c949c 100644 --- a/netbox/templates/dcim/inc/consoleport.html +++ b/netbox/templates/dcim/inc/consoleport.html @@ -1,4 +1,4 @@ - + {% if selectable and perms.dcim.change_consoleport or perms.dcim.delete_consoleport %} - {% if cp.cs_port %} {% endif %} - {% if selectable and perms.dcim.change_consoleserverport or perms.dcim.delete_consoleserverport %} {% endif %} - + {% if selectable and perms.dcim.change_devicebay or perms.dcim.delete_devicebay %} {% endif %} - {% if selectable and perms.dcim.change_poweroutlet or perms.dcim.delete_poweroutlet %} {% endif %} - {% if selectable and perms.dcim.change_powerport or perms.dcim.delete_powerport %} - {% if pp.power_outlet %} {% endif %} -
@@ -7,7 +7,6 @@ {{ cp.name }} {{ cp.cs_port.device }} @@ -20,7 +19,7 @@ Not connected + {% if perms.dcim.change_consoleport %} {% if cp.cs_port %} {% if cp.connection_status %} diff --git a/netbox/templates/dcim/inc/consoleserverport.html b/netbox/templates/dcim/inc/consoleserverport.html index d3c923e43..d317cf5a4 100644 --- a/netbox/templates/dcim/inc/consoleserverport.html +++ b/netbox/templates/dcim/inc/consoleserverport.html @@ -1,4 +1,4 @@ - +
@@ -19,7 +19,7 @@ Not connected + {% if perms.dcim.change_consoleserverport %} {% if csp.connected_console %} {% if csp.connected_console.connection_status %} diff --git a/netbox/templates/dcim/inc/devicebay.html b/netbox/templates/dcim/inc/devicebay.html index eacb27440..f69299bfb 100644 --- a/netbox/templates/dcim/inc/devicebay.html +++ b/netbox/templates/dcim/inc/devicebay.html @@ -1,4 +1,4 @@ -
@@ -19,7 +19,7 @@ Vacant + {% if perms.dcim.change_devicebay %} {% if devicebay.installed_device %} diff --git a/netbox/templates/dcim/inc/poweroutlet.html b/netbox/templates/dcim/inc/poweroutlet.html index 241ebc15c..652ac8e47 100644 --- a/netbox/templates/dcim/inc/poweroutlet.html +++ b/netbox/templates/dcim/inc/poweroutlet.html @@ -1,4 +1,4 @@ - +
@@ -19,7 +19,7 @@ Not connected + {% if perms.dcim.change_poweroutlet %} {% if po.connected_port %} {% if po.connected_port.connection_status %} diff --git a/netbox/templates/dcim/inc/powerport.html b/netbox/templates/dcim/inc/powerport.html index aacb96839..785186670 100644 --- a/netbox/templates/dcim/inc/powerport.html +++ b/netbox/templates/dcim/inc/powerport.html @@ -1,4 +1,4 @@ - +
@@ -7,7 +7,6 @@ {{ pp.name }} {{ pp.power_outlet.device }} @@ -20,7 +19,7 @@ Not connected + {% if perms.dcim.change_powerport %} {% if pp.power_outlet %} {% if pp.connection_status %}