Dashboard - Fix device keys and call center agents background color (#7352)
* Fix background color on device keys and call center agent widgets * Update call_center_agents.php * Update index.php * Update index.php * Update device_keys.php * Update call_center_agents.php * Update call_center_agents.php * Update device_keys.php * Update config.php * Update index.php * Update device_keys.php * Update call_center_agents.php * Update index.php * Update index.php * Update device_keys.php * Update call_center_agents.php * Update call_center_agents.php * Update device_keys.php
This commit is contained in:
parent
6e171710f6
commit
48a0990d51
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2017-2023
|
Portions created by the Initial Developer are Copyright (C) 2017-2025
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -258,9 +258,12 @@
|
||||||
echo "</script>\n";
|
echo "</script>\n";
|
||||||
|
|
||||||
//show the content
|
//show the content
|
||||||
|
echo "<div class='hud_box'>";
|
||||||
|
|
||||||
|
echo "<div class='hud_content' style='display: block;'>\n";
|
||||||
echo " <div class='action_bar sub'>\n";
|
echo " <div class='action_bar sub'>\n";
|
||||||
echo " <div class='heading'><b>".$text['header-call_center_queues'].(!empty($agent['agent_name']) ? " </b> Agent: <strong>".$agent['agent_name']."</strong>" : "</b>")."</div>\n";
|
echo " <div class='heading' style='padding-left: 5px;'><b>".$text['header-call_center_queues'].(!empty($agent['agent_name']) ? " </b> Agent: <strong>".$agent['agent_name']."</strong>" : "</b>")."</div>\n";
|
||||||
echo " <div class='actions'>\n";
|
echo " <div class='actions' style='padding-top: 2px;'>\n";
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.getElementById('form_list_call_center_agent_dashboard').submit();"]);
|
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.getElementById('form_list_call_center_agent_dashboard').submit();"]);
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
echo " <div style='clear: both;'></div>\n";
|
echo " <div style='clear: both;'></div>\n";
|
||||||
|
|
@ -268,7 +271,7 @@
|
||||||
|
|
||||||
echo " <form id='form_list_call_center_agent_dashboard' method='post'>\n";
|
echo " <form id='form_list_call_center_agent_dashboard' method='post'>\n";
|
||||||
|
|
||||||
echo "<table class='list'>\n";
|
echo " <table class='list' style='padding: 0 5px;'>\n";
|
||||||
echo " <tr class='list-header'>\n";
|
echo " <tr class='list-header'>\n";
|
||||||
echo " <th>".$text['label-queue_name']."</th>\n";
|
echo " <th>".$text['label-queue_name']."</th>\n";
|
||||||
echo " <th class='shrink'>".$text['label-status']."</th>\n";
|
echo " <th class='shrink'>".$text['label-status']."</th>\n";
|
||||||
|
|
@ -299,5 +302,8 @@
|
||||||
echo " <br />\n";
|
echo " <br />\n";
|
||||||
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||||
echo " </form>\n";
|
echo " </form>\n";
|
||||||
|
echo "</div>\n";
|
||||||
|
|
||||||
|
echo "</div>\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ $array['dashboard'][$x]['dashboard_label_background_color_hover'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
|
$array['dashboard'][$x]['dashboard_number_background_color'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
|
$array['dashboard'][$x]['dashboard_number_text_color'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
|
$array['dashboard'][$x]['dashboard_number_text_color_hover'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_background_color'] = '';
|
$array['dashboard'][$x]['dashboard_background_color'] = '#ffffff';
|
||||||
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
|
$array['dashboard'][$x]['dashboard_background_color_hover'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
|
$array['dashboard'][$x]['dashboard_detail_background_color'] = '';
|
||||||
$array['dashboard'][$x]['dashboard_column_span'] = '1';
|
$array['dashboard'][$x]['dashboard_column_span'] = '1';
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2016-2023
|
Portions created by the Initial Developer are Copyright (C) 2016-2025
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
@ -427,9 +427,12 @@
|
||||||
$token = $object->create('/app/devices/resources/dashboard/device_keys.php');
|
$token = $object->create('/app/devices/resources/dashboard/device_keys.php');
|
||||||
|
|
||||||
//show the content
|
//show the content
|
||||||
|
echo "<div class='hud_box'>";
|
||||||
|
|
||||||
|
echo "<div class='hud_content' style='display: block;'>\n";
|
||||||
echo " <div class='action_bar sub'>\n";
|
echo " <div class='action_bar sub'>\n";
|
||||||
echo " <div class='heading'><b>".$text['title-device_keys']."</b></div>\n";
|
echo " <div class='heading' style='padding-left: 5px;'><b>".$text['title-device_keys']."</b></div>\n";
|
||||||
echo " <div class='actions'>\n";
|
echo " <div class='actions' style='padding-top: 2px;'>\n";
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-apply'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".($user_id ?? '')."@".($server_address ?? '')."&domain=".($server_address ?? '')."&agent=".($device_key_vendor ?? '')."';"]);
|
echo button::create(['type'=>'button','label'=>$text['button-apply'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".($user_id ?? '')."@".($server_address ?? '')."&domain=".($server_address ?? '')."&agent=".($device_key_vendor ?? '')."';"]);
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"list_form_submit('form_list_device_keys');"]);
|
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"list_form_submit('form_list_device_keys');"]);
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
|
|
@ -623,6 +626,9 @@
|
||||||
}
|
}
|
||||||
echo " </table>\n";
|
echo " </table>\n";
|
||||||
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||||
echo "</form>";
|
echo " </form>\n";
|
||||||
|
echo "</div>\n";
|
||||||
|
|
||||||
|
echo "</div>\n";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2022-2024
|
Portions created by the Initial Developer are Copyright (C) 2022-2025
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -147,9 +147,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
//save the data
|
//save the data
|
||||||
|
if (is_array($array)) {
|
||||||
$database->app_name = 'dashboard';
|
$database->app_name = 'dashboard';
|
||||||
$database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7';
|
$database->app_uuid = '55533bef-4f04-434a-92af-999c1e9927f7';
|
||||||
$database->save($array);
|
$database->save($array);
|
||||||
|
}
|
||||||
|
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
message::add($text['message-update']);
|
message::add($text['message-update']);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue