From 69f08cc027d9d95989125365ce4b43bcd0bb2f5f Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Fri, 17 Feb 2023 14:44:26 +0100 Subject: [PATCH] Ticket 10460 Improve menu buttons --- pandora_console/include/functions_menu.php | 40 ++++++++++++++++++---- pandora_console/include/styles/pandora.css | 4 +++ 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 61940ea1b9..b9774ae800 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -875,12 +875,40 @@ if (is_ajax()) {

'.__('Build').' '.$build_version.'

'.__('Support expires').' 2023/04/26

'; if ((bool) check_acl($config['id_user'], 0, 'PM') === true) { - $dialog .= ' -
- - -
- '; + $dialogButtons = []; + + $dialogButtons[] = html_print_button( + __('Update manager'), + 'update_manager', + false, + 'location.href=\''.ui_get_full_url('/index.php?sec=gsetup&sec2=godmode/update_manager/update_manager&tab=history', false, false, false).'\'', + [ + 'icon' => 'cog', + 'mode' => 'mini secondary', + ], + true + ); + + $dialogButtons[] = html_print_button( + __('System report'), + 'system_report', + false, + 'location.href=\''.ui_get_full_url('/index.php?sec=gextensions&sec2=tools/diagnostics', false, false, false).'\'', + [ + 'icon' => 'info', + 'mode' => 'mini secondary', + ], + true + ); + + $dialog .= html_print_div( + [ + 'style' => 'flex-direction: row;', + 'class' => 'action-buttons', + 'content' => implode('', $dialogButtons), + ], + true + ); } $dialog .= ' diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 82774a5aa5..e81f4d4c6d 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -10347,6 +10347,10 @@ button div.cog { contain; } +button div.info { + mask: url(../../images/info@svg.svg) no-repeat center / contain; + -webkit-mask: url(../../images/info@svg.svg) no-repeat center / contain; +} button div.signin { mask: url(../../images/signin.svg) no-repeat center / contain; -webkit-mask: url(../../images/signin.svg) no-repeat center / contain;