From 8d5cc4bb0d62536b56b3fb0cb3984653daab53dd Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 30 Apr 2015 04:36:57 +0000 Subject: [PATCH] Get the device username and password to show on the same line and hide the password when the field is not selected. --- app/devices/device_edit.php | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index d51f0cc7a9..46767ccf0a 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -294,6 +294,8 @@ require_once "resources/require.php"; $device_label = $row["device_label"]; //$device_mac_address = substr($device_mac_address, 0,2).'-'.substr($device_mac_address, 2,2).'-'.substr($device_mac_address, 4,2).'-'.substr($device_mac_address, 6,2).'-'.substr($device_mac_address, 8,2).'-'.substr($device_mac_address, 10,2); $device_label = $row["device_label"]; + $device_username = $row["device_username"]; + $device_password = $row["device_password"]; $device_vendor = $row["device_vendor"]; $device_model = $row["device_model"]; $device_firmware_version = $row["device_firmware_version"]; @@ -1030,23 +1032,13 @@ require_once "resources/require.php"; echo "\n"; echo "\n"; - echo " ".$text['label-device_username']."\n"; + echo " ".$text['label-device']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; + echo " \n"; echo "
\n"; - echo $text['description-device_username']."\n"; - echo "\n"; - echo "\n"; - - echo "\n"; - echo "\n"; - echo " ".$text['label-device_password']."\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo "
\n"; - echo $text['description-device_password']."\n"; + echo $text['description-device']."\n"; echo "\n"; echo "\n"; @@ -1160,4 +1152,4 @@ require_once "resources/require.php"; //show the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file