diff --git a/netbox/dcim/tables/template_code.py b/netbox/dcim/tables/template_code.py index 4b51cd06a..1c526649b 100644 --- a/netbox/dcim/tables/template_code.py +++ b/netbox/dcim/tables/template_code.py @@ -159,8 +159,8 @@ CONSOLEPORT_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% else %} - + {% endif %} """ @@ -209,8 +209,8 @@ CONSOLESERVERPORT_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% else %} - + {% endif %} """ @@ -259,8 +259,8 @@ POWERPORT_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% else %} - + {% endif %} """ @@ -308,14 +308,14 @@ POWEROUTLET_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% if not record.mark_connected %} {% else %} - + {% endif %} {% endif %} """ @@ -402,8 +402,8 @@ INTERFACE_BUTTONS = """ {% endif %} {% elif record.is_wired and perms.dcim.add_cable %} - - + + {% if not record.mark_connected %} {% else %} - + {% endif %} {% elif record.is_wireless and perms.wireless.add_wirelesslink %} @@ -459,8 +459,8 @@ FRONTPORT_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% if not record.mark_connected %} {% else %} - + {% endif %} {% endif %} """ @@ -514,8 +514,8 @@ REARPORT_BUTTONS = """ {% endif %} {% elif perms.dcim.add_cable %} - - + + {% if not record.mark_connected %} {% else %} - + {% endif %} {% endif %} """ diff --git a/netbox/templates/extras/inc/format_toggle.html b/netbox/templates/extras/inc/format_toggle.html index 175811611..68c855d53 100644 --- a/netbox/templates/extras/inc/format_toggle.html +++ b/netbox/templates/extras/inc/format_toggle.html @@ -1,4 +1,4 @@