From 3fde0b143d96a8e0dd008f37185d3bce13b01452 Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 21 Aug 2025 09:49:51 -0600 Subject: [PATCH] Device - Edit: Apply slide toggle option to Device Lines and Settings fields. --- app/devices/device_edit.php | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php index f98f0b5786..c4dbccf36d 100644 --- a/app/devices/device_edit.php +++ b/app/devices/device_edit.php @@ -1451,10 +1451,18 @@ } echo " \n"; - echo " \n"; + if (substr($settings->get('theme', 'input_toggle_style'), 0, 6) == 'switch') { + echo " \n"; + } + else { + echo " \n"; + } echo " \n"; if (!empty($device_lines) && is_array($device_lines) && @sizeof($device_lines) > 1 && permission_exists('device_line_delete') && !empty($row['device_line_uuid']) && is_uuid($row['device_line_uuid'])) { @@ -1807,10 +1815,18 @@ echo "\n"; echo "\n"; - echo " \n"; + if (substr($settings->get('theme', 'input_toggle_style'), 0, 6) == 'switch') { + echo " \n"; + } + else { + echo " \n"; + } echo "\n"; echo "\n";