From b64ebb374df92ffa7f04e39269d902de8ab76aa5 Mon Sep 17 00:00:00 2001 From: Alex <40072887+alexdcrane@users.noreply.github.com> Date: Wed, 6 Aug 2025 16:01:09 -0700 Subject: [PATCH] Dashboard - Use a class to determine the row span (#7451) * Dashboard - Use a class to determine the row span * Update parent.php * Update icon.php * Update content.php * Update domains.php * Update dashboard_edit.php * Update missed_calls.php * Update recent_calls.php * Update voicemails.php * Update system_counts.php * Update system_cpu_status.php * Update system_disk_usage.php * Update system_services.php * Update system_status.php * Update system_services.php * Update switch_status.php * Update registrations.php * Update ring_group_forward.php * Update caller_id.php * Update domain_limits.php * Update call_forward.php * Update active_calls.php --- .../resources/dashboard/active_calls.php | 2 +- .../resources/dashboard/call_forward.php | 4 +- .../resources/dashboard/domain_limits.php | 4 +- .../resources/dashboard/caller_id.php | 4 +- .../resources/dashboard/registrations.php | 2 +- .../dashboard/ring_group_forward.php | 4 +- .../resources/dashboard/switch_status.php | 6 +- .../resources/dashboard/system_counts.php | 4 +- .../resources/dashboard/system_cpu_status.php | 4 +- .../resources/dashboard/system_disk_usage.php | 4 +- .../resources/dashboard/system_services.php | 3 +- .../resources/dashboard/system_status.php | 4 +- .../resources/dashboard/voicemails.php | 4 +- .../resources/dashboard/missed_calls.php | 4 +- .../resources/dashboard/recent_calls.php | 4 +- core/dashboard/dashboard_edit.php | 2 +- core/dashboard/index.php | 163 +++++++++++------- .../dashboard/resources/dashboard/content.php | 2 +- core/dashboard/resources/dashboard/icon.php | 2 +- core/dashboard/resources/dashboard/parent.php | 124 ++++++++----- core/domains/resources/dashboard/domains.php | 2 +- 21 files changed, 217 insertions(+), 135 deletions(-) diff --git a/app/active_calls/resources/dashboard/active_calls.php b/app/active_calls/resources/dashboard/active_calls.php index f2d176a22e..f8369362e3 100644 --- a/app/active_calls/resources/dashboard/active_calls.php +++ b/app/active_calls/resources/dashboard/active_calls.php @@ -68,7 +68,7 @@ $row_style["0"] = "row_style0"; $row_style["1"] = "row_style1"; //icon and count -echo "
\n"; +echo "
\n"; echo "".$text['title']."\n"; echo "
\n"; echo "\n"; diff --git a/app/call_forward/resources/dashboard/call_forward.php b/app/call_forward/resources/dashboard/call_forward.php index 989f763919..2204dc5307 100644 --- a/app/call_forward/resources/dashboard/call_forward.php +++ b/app/call_forward/resources/dashboard/call_forward.php @@ -102,7 +102,7 @@ //begin widget echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['header-call_forward']."\n"; //doughnut chart @@ -248,7 +248,7 @@ echo "
"; //$n++; - echo "\n"; + echo "\n"; } echo "
\n"; diff --git a/app/domain_limits/resources/dashboard/domain_limits.php b/app/domain_limits/resources/dashboard/domain_limits.php index 5949378bf7..0fbcffc813 100644 --- a/app/domain_limits/resources/dashboard/domain_limits.php +++ b/app/domain_limits/resources/dashboard/domain_limits.php @@ -110,7 +110,7 @@ $hud_stat_title = $text['label-destinations']; } - echo "
\n"; + echo "
\n"; echo " ".$text['label-domain_limits']."\n"; //doughnut chart @@ -240,7 +240,7 @@ echo "
"; //$n++; - echo ""; + echo ""; } echo "
\n"; } diff --git a/app/extensions/resources/dashboard/caller_id.php b/app/extensions/resources/dashboard/caller_id.php index f7b5133e52..c11ebaa778 100644 --- a/app/extensions/resources/dashboard/caller_id.php +++ b/app/extensions/resources/dashboard/caller_id.php @@ -172,7 +172,7 @@ //caller id echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['label-caller_id_number']."\n"; //doughnut chart @@ -310,7 +310,7 @@ echo "\n"; echo "\n"; - echo ""; + echo ""; } echo "
\n"; diff --git a/app/registrations/resources/dashboard/registrations.php b/app/registrations/resources/dashboard/registrations.php index 1c03b40e69..1541fe1402 100644 --- a/app/registrations/resources/dashboard/registrations.php +++ b/app/registrations/resources/dashboard/registrations.php @@ -51,7 +51,7 @@ //dashboard icon echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".escape($dashboard_label).""; echo "
\n"; echo " \n"; diff --git a/app/ring_groups/resources/dashboard/ring_group_forward.php b/app/ring_groups/resources/dashboard/ring_group_forward.php index a62b352677..3e69a0d674 100644 --- a/app/ring_groups/resources/dashboard/ring_group_forward.php +++ b/app/ring_groups/resources/dashboard/ring_group_forward.php @@ -153,7 +153,7 @@ //ring group forward echo "
\n"; - echo "
\n"; + echo "
\n"; echo " ".$text['header-ring-group-forward']."\n"; //doughnut chart @@ -307,7 +307,7 @@ echo "\n"; } - echo ""; + echo ""; } echo "
\n"; diff --git a/app/switch/resources/dashboard/switch_status.php b/app/switch/resources/dashboard/switch_status.php index cbcddbc288..771ac658fd 100644 --- a/app/switch/resources/dashboard/switch_status.php +++ b/app/switch/resources/dashboard/switch_status.php @@ -77,13 +77,13 @@ } //show the content - echo "
\n"; + echo "
\n"; echo " ".$text['label-switch_status']."\n"; if (!isset($dashboard_chart_type) || $dashboard_chart_type == "doughnut") { //add doughnut chart ?> -
+