diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php
index f3a9857c1a..74de2aa7b2 100644
--- a/app/devices/device_edit.php
+++ b/app/devices/device_edit.php
@@ -912,7 +912,10 @@
}
echo "
".$text['label-enabled']." | \n";
if (is_array($device_lines) && @sizeof($device_lines) > 1 && permission_exists('device_line_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
@@ -1056,7 +1059,7 @@
if (is_array($device_lines) && @sizeof($device_lines) > 1 && permission_exists('device_line_delete')) {
echo " \n";
if (is_uuid($row['device_line_uuid'])) {
- echo " \n";
+ echo " \n";
echo " \n";
}
echo " | \n";
@@ -1127,7 +1130,10 @@
echo " ".$text['label-device_key_label']." | \n";
echo " ".$text['label-device_key_icon']." | \n";
if (is_array($device_keys) && @sizeof($device_keys) > 1 && permission_exists('device_key_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
}
@@ -1152,7 +1158,10 @@
echo " ".$text['label-device_key_label']." | \n";
echo " ".$text['label-device_key_icon']." | \n";
if (is_array($device_keys) && @sizeof($device_keys) > 1 && permission_exists('device_key_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
}
@@ -1363,7 +1372,7 @@
if (is_array($device_keys) && @sizeof($device_keys) > 1 && permission_exists('device_key_delete')) {
echo " \n";
if (is_uuid($row['device_key_uuid'])) {
- echo " \n";
+ echo " \n";
echo " \n";
}
}
@@ -1394,7 +1403,10 @@
echo " | ".$text['label-enabled']." | \n";
echo " ".$text['label-device_setting_description']." | \n";
if (is_array($device_settings) && @sizeof($device_settings) > 1 && permission_exists('device_setting_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
@@ -1427,19 +1439,8 @@
echo "\n";
echo " \n";
echo " | \n";
@@ -1450,7 +1451,7 @@
if (is_array($device_settings) && @sizeof($device_settings) > 1 && permission_exists('device_setting_delete')) {
echo "\n";
if (is_uuid($row['device_setting_uuid'])) {
- echo " \n";
+ echo " \n";
echo " \n";
}
echo " | \n";
diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php
index c571d1bca7..07ce04be6a 100644
--- a/app/devices/device_profile_edit.php
+++ b/app/devices/device_profile_edit.php
@@ -416,7 +416,10 @@
echo " ".$text['label-device_key_label']." | \n";
echo " ".$text['label-device_key_icon']." | \n";
if (is_array($device_profile_keys) && @sizeof($device_profile_keys) > 1 && permission_exists('device_profile_key_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
}
@@ -424,9 +427,6 @@
$x = 0;
foreach($device_profile_keys as $row) {
- //set the device vendor
- $device_vendor = $row['device_key_vendor'];
-
//get the profile key vendor from the key type
foreach ($vendor_functions as $function) {
if ($row['profile_key_vendor'] == $function['vendor_name'] && $row['profile_key_type'] == $function['value']) {
@@ -434,6 +434,9 @@
}
}
+ //prep vendor name for use in ids and classes
+ $device_vendor = str_replace(' ', '_', $row['profile_key_vendor']);
+
//set the column names
if ($previous_profile_key_vendor != $row['profile_key_vendor']) {
echo " \n";
@@ -452,7 +455,10 @@
echo " | ".$text['label-device_key_label']." | \n";
echo " ".$text['label-device_key_icon']." | \n";
if (is_array($device_profile_keys) && @sizeof($device_profile_keys) > 1 && is_uuid($row["device_profile_key_uuid"]) && permission_exists('device_profile_key_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo "
\n";
}
@@ -579,7 +585,7 @@
if (is_array($device_profile_keys) && @sizeof($device_profile_keys) > 1 && permission_exists('device_profile_key_delete')) {
echo " \n";
if (is_uuid($row["device_profile_key_uuid"])) {
- echo " \n";
+ echo " \n";
echo " \n";
}
echo " | \n";
@@ -610,7 +616,10 @@
echo " ".$text['label-enabled']." | \n";
echo " ".$text['label-device_setting_description']." | \n";
if (is_array($device_profile_settings) && @sizeof($device_profile_settings) > 1 && permission_exists('device_profile_setting_delete')) {
- echo " ".$text['label-delete']." | \n";
+ echo " \n";
+ echo " ".$text['label-delete']."\n";
+ echo " \n";
+ echo " | \n";
}
echo " \n";
$x = 0;
@@ -637,7 +646,7 @@
if (is_array($device_profile_settings) && @sizeof($device_profile_settings) > 1 && permission_exists('device_profile_setting_delete')) {
echo " \n";
if (is_uuid($row["device_profile_setting_uuid"])) {
- echo " \n";
+ echo " \n";
echo " \n";
}
echo " | \n";