From ea869d4ffc127575f45e8574319bf1575c41bba0 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 16 Jun 2017 10:01:47 -0400 Subject: [PATCH] Fixes #1282: Fixed tooltips on "mark connected/planned" toggle buttons for device connections --- netbox/templates/dcim/device.html | 4 ++-- netbox/templates/dcim/inc/consoleport.html | 24 +++++++++---------- .../templates/dcim/inc/consoleserverport.html | 24 +++++++++---------- netbox/templates/dcim/inc/interface.html | 2 +- netbox/templates/dcim/inc/poweroutlet.html | 24 +++++++++---------- netbox/templates/dcim/inc/powerport.html | 24 +++++++++---------- 6 files changed, 51 insertions(+), 51 deletions(-) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index a6e5d1dbe..0c63548f6 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -591,7 +591,7 @@ function toggleConnection(elem, api_url) { success: function() { elem.parents('tr').removeClass('success').addClass('info'); elem.removeClass('connected btn-warning').addClass('btn-success'); - elem.attr('title', 'Mark connected'); + elem.attr('title', 'Mark installed'); elem.children('i').removeClass('glyphicon glyphicon-ban-circle').addClass('fa fa-plug') } }); @@ -610,7 +610,7 @@ function toggleConnection(elem, api_url) { success: function() { elem.parents('tr').removeClass('info').addClass('success'); elem.removeClass('btn-success').addClass('connected btn-warning'); - elem.attr('title', 'Mark disconnected'); + elem.attr('title', 'Mark planned'); elem.children('i').removeClass('fa fa-plug').addClass('glyphicon glyphicon-ban-circle') } }); diff --git a/netbox/templates/dcim/inc/consoleport.html b/netbox/templates/dcim/inc/consoleport.html index 58f5fa7de..114f434c1 100644 --- a/netbox/templates/dcim/inc/consoleport.html +++ b/netbox/templates/dcim/inc/consoleport.html @@ -24,24 +24,24 @@ {% if perms.dcim.change_consoleport %} {% if cp.cs_port %} {% if cp.connection_status %} - - + + {% else %} - - + + {% endif %} - - + + {% else %} - - + + {% endif %} - - + + {% endif %} {% if perms.dcim.delete_consoleport %} @@ -50,8 +50,8 @@ {% else %} - - + + {% endif %} {% endif %} diff --git a/netbox/templates/dcim/inc/consoleserverport.html b/netbox/templates/dcim/inc/consoleserverport.html index cfeab9212..e40009881 100644 --- a/netbox/templates/dcim/inc/consoleserverport.html +++ b/netbox/templates/dcim/inc/consoleserverport.html @@ -24,24 +24,24 @@ {% if perms.dcim.change_consoleserverport %} {% if csp.connected_console %} {% if csp.connected_console.connection_status %} - - + + {% else %} - - + + {% endif %} - - + + {% else %} - - + + {% endif %} - - + + {% endif %} {% if perms.dcim.delete_consoleserverport %} @@ -50,8 +50,8 @@ {% else %} - - + + {% endif %} {% endif %} diff --git a/netbox/templates/dcim/inc/interface.html b/netbox/templates/dcim/inc/interface.html index 86e480710..4f1ff00e5 100644 --- a/netbox/templates/dcim/inc/interface.html +++ b/netbox/templates/dcim/inc/interface.html @@ -72,7 +72,7 @@ {% else %} - + {% endif %} diff --git a/netbox/templates/dcim/inc/poweroutlet.html b/netbox/templates/dcim/inc/poweroutlet.html index eef4874d6..061b3c682 100644 --- a/netbox/templates/dcim/inc/poweroutlet.html +++ b/netbox/templates/dcim/inc/poweroutlet.html @@ -24,24 +24,24 @@ {% if perms.dcim.change_poweroutlet %} {% if po.connected_port %} {% if po.connected_port.connection_status %} - - + + {% else %} - - + + {% endif %} - - + + {% else %} - - + + {% endif %} - - + + {% endif %} {% if perms.dcim.delete_poweroutlet %} @@ -50,8 +50,8 @@ {% else %} - - + + {% endif %} {% endif %} diff --git a/netbox/templates/dcim/inc/powerport.html b/netbox/templates/dcim/inc/powerport.html index ce4ac6967..63da4ad84 100644 --- a/netbox/templates/dcim/inc/powerport.html +++ b/netbox/templates/dcim/inc/powerport.html @@ -24,24 +24,24 @@ {% if perms.dcim.change_powerport %} {% if pp.power_outlet %} {% if pp.connection_status %} - - + + {% else %} - - + + {% endif %} - - + + {% else %} - - + + {% endif %} - - + + {% endif %} {% if perms.dcim.delete_powerport %} @@ -50,8 +50,8 @@ {% else %} - - + + {% endif %} {% endif %}