From 83de025bc94fe52d13726167d3dee3e2554f2d33 Mon Sep 17 00:00:00 2001 From: "jose.gonzalez@pandorafms.com" Date: Fri, 21 Oct 2022 13:47:41 +0200 Subject: [PATCH] Several adaptations --- pandora_console/extensions/module_groups.php | 10 +++++++++- .../godmode/agentes/modificar_agente.php | 17 ++++++++++++++--- .../godmode/agentes/module_manager.php | 10 +++++++++- .../operation/agentes/estado_agente.php | 7 +++++-- 4 files changed, 37 insertions(+), 7 deletions(-) diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index a04e6a08dc..4dfe0e6b6d 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -280,7 +280,15 @@ function mainModuleGroups() html_print_input_text('module_group_search', $module_group_search); echo ''; - echo ""; + html_print_submit_button( + __('Search'), + 'srcbutton', + false, + [ + 'icon' => 'search', + 'secondary' => true, + ] + ); echo ''; echo ''; echo ''; diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 3b714c277b..abaef3eaaa 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -369,7 +369,15 @@ echo ui_print_help_tip( ); echo ''; -echo ""; +html_print_submit_button( + __('Search'), + 'srcbutton', + false, + [ + 'icon' => 'search', + 'secondary' => true, + ] +); echo ''; echo ''; echo ''; @@ -945,7 +953,7 @@ if ($agents !== false) { ui_print_info_message(['no_close' => true, 'message' => __('There are no defined agents') ]); } -if (check_acl($config['id_user'], 0, 'AW')) { +if ((bool) check_acl($config['id_user'], 0, 'AW') === true) { // Create agent button. echo '
'; echo '
'; @@ -953,7 +961,10 @@ if (check_acl($config['id_user'], 0, 'AW')) { __('Create agent'), 'crt-2', false, - 'class="sub next"' + [ + 'icon' => 'search', + 'secondary' => true, + ] ); echo '
'; echo '
'; diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 6cfa2685b4..20ecf6145a 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -226,7 +226,15 @@ if (($policy_page) || (isset($agent))) { html_print_input_hidden('edit_module', 1); echo ''; echo ''; - echo ''; + html_print_submit_button( + __('Create'), + 'updbutton', + false, + [ + 'icon' => 'next', + 'secondary' => true, + ] + ); echo ''; echo ''; echo ''; diff --git a/pandora_console/operation/agentes/estado_agente.php b/pandora_console/operation/agentes/estado_agente.php index 0210545a26..4b634f5f53 100644 --- a/pandora_console/operation/agentes/estado_agente.php +++ b/pandora_console/operation/agentes/estado_agente.php @@ -290,8 +290,11 @@ echo ''; html_print_submit_button( __('Search'), 'srcbutton', - '', - ['class' => 'sub search'] + false, + [ + 'icon' => 'search', + 'secondary' => true, + ] ); echo '';