From bf7e494024d528de1a30625df53e4d2fce184d0c Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 21 Aug 2025 13:25:09 -0600 Subject: [PATCH] Dialplan - Add: Apply slide toggle option to Enabled field. --- app/dialplans/dialplan_add.php | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/app/dialplans/dialplan_add.php b/app/dialplans/dialplan_add.php index 25a0a32abf..3e603c6db4 100644 --- a/app/dialplans/dialplan_add.php +++ b/app/dialplans/dialplan_add.php @@ -72,9 +72,8 @@ $dialplan_context = $_POST["dialplan_context"]; $dialplan_order = $_POST["dialplan_order"]; - $dialplan_enabled = $_POST["dialplan_enabled"]; + $dialplan_enabled = $_POST["dialplan_enabled"] ?? 'false'; $dialplan_description = $_POST["dialplan_description"]; - if (empty($dialplan_enabled)) { $dialplan_enabled = "true"; } //set default to enabled } //set the default @@ -521,10 +520,18 @@ echo " ".$text['label-enabled']."\n"; 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"; echo "\n";