Add enabled toggle to more pages and bug fix (#6552)
* Add enabled toggle to more pages and bug fix * Add device profile enable toggle * fixed enable on bridge_edit.php * Fixed enable on call_block_edit.php * Fixed enable on call_flow_edit.php * Fixed enable on conference_center_edit.php * Add conference room enabled toggle * Fixed enable on conference_control_detail_edit.php * Fixed enable on conference_control_edit.php * Fixed enable on conference_profile_edit.php * Add conference profile param enabled toggle * Fixed enable on conference_edit.php * Fixed enabled on device_edit.php * Fixed enable on extension_edit.php * Fixed enable on gateway_edit.php * Fixed enable on number_translation_edit.php * Fixed enable on phrase_edit.php * Fixed enable on ring_group_edit.php * Fixed enable on sip_profile_edit.php * Fixed enable on stream_edit.php * Fixed enable on time_condition_edit.php * Fixed enable on var_edit.php * Fixed enable on voicemail_edit.php * Fixed enable on user_edit.php * Fixed enable on user_setting_edit.php * Update user_edit.php * Update bridge_edit.php * Update call_flow_edit.php * Update conference_control_edit.php * Update stream_edit.php * Fixed enable on default_setting_edit.php * Fixed enable on domain_edit.php * Fixed enable on email_template_edit.php * Fixed enable on module_edit.php
This commit is contained in:
@@ -159,7 +159,7 @@
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='profile_enabled'>\n";
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
echo " <option value='true' ".($profile_enabled == "true" ? "selected='selected'" : null).">".$text['label-true']."</option>\n";
|
||||
echo " <option value='false' ".($profile_enabled == "false" ? "selected='selected'" : null).">".$text['label-false']."</option>\n";
|
||||
echo " </select>\n";
|
||||
echo "<br />\n";
|
||||
@@ -194,4 +194,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
if (count($_POST)>0) {
|
||||
$profile_param_name = $_POST["profile_param_name"];
|
||||
$profile_param_value = $_POST["profile_param_value"];
|
||||
$profile_param_enabled = $_POST["profile_param_enabled"];
|
||||
$profile_param_enabled = $_POST["profile_param_enabled"] ?: 'false';
|
||||
$profile_param_description = $_POST["profile_param_description"];
|
||||
}
|
||||
|
||||
@@ -177,10 +177,18 @@
|
||||
echo " ".$text['label-profile_param_enabled']."\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <select class='formfld' name='profile_param_enabled'>\n";
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
echo " <option value='false' ".($profile_param_enabled == "false" ? "selected='selected'" : null).">".$text['label-false']."</option>\n";
|
||||
echo " </select>\n";
|
||||
if (substr($_SESSION['theme']['input_toggle_style']['text'], 0, 6) == 'switch') {
|
||||
echo " <label class='switch'>\n";
|
||||
echo " <input type='checkbox' id='profile_param_enabled' name='profile_param_enabled' value='true' ".($profile_param_enabled == 'true' ? "checked='checked'" : null).">\n";
|
||||
echo " <span class='slider'></span>\n";
|
||||
echo " </label>\n";
|
||||
}
|
||||
else {
|
||||
echo " <select class='formfld' id='profile_param_enabled' name='profile_param_enabled'>\n";
|
||||
echo " <option value='true' ".($profile_param_enabled == 'true' ? "selected='selected'" : null).">".$text['option-true']."</option>\n";
|
||||
echo " <option value='false' ".($profile_param_enabled == 'false' ? "selected='selected'" : null).">".$text['option-false']."</option>\n";
|
||||
echo " </select>\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
echo $text['description-profile_param_enabled']."\n";
|
||||
echo "</td>\n";
|
||||
@@ -211,4 +219,4 @@
|
||||
//include the footer
|
||||
require_once "resources/footer.php";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user