diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index 4dfe0e6b6d..d8b432da08 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -285,8 +285,8 @@ function mainModuleGroups() 'srcbutton', false, [ - 'icon' => 'search', - 'secondary' => true, + 'icon' => 'search', + 'mode' => 'secondary', ] ); echo ''; diff --git a/pandora_console/godmode/agentes/agent_manager.php b/pandora_console/godmode/agentes/agent_manager.php index 676a4db993..f5a8154908 100644 --- a/pandora_console/godmode/agentes/agent_manager.php +++ b/pandora_console/godmode/agentes/agent_manager.php @@ -967,26 +967,34 @@ echo ''; if ($id_agente) { - echo '
'; +html_print_div( + [ + 'class' => 'action-buttons', + 'content' => $submitButton, + ] +); + +echo ''; ui_require_jquery_file('pandora.controls'); ui_require_jquery_file('ajaxqueue'); diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index abaef3eaaa..b91b1556bc 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -374,8 +374,8 @@ html_print_submit_button( 'srcbutton', false, [ - 'icon' => 'search', - 'secondary' => true, + 'icon' => 'search', + 'mode' => 'mini', ] ); echo ''; @@ -955,19 +955,23 @@ if ($agents !== false) { if ((bool) check_acl($config['id_user'], 0, 'AW') === true) { // Create agent button. - echo ' '; } echo ''; diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 20ecf6145a..35f50687db 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -231,8 +231,8 @@ if (($policy_page) || (isset($agent))) { 'updbutton', false, [ - 'icon' => 'next', - 'secondary' => true, + 'icon' => 'next', + 'mode' => 'secondary', ] ); echo ''; diff --git a/pandora_console/godmode/events/event_edit_filter.php b/pandora_console/godmode/events/event_edit_filter.php index 91045ce0ea..8badf3d1e2 100644 --- a/pandora_console/godmode/events/event_edit_filter.php +++ b/pandora_console/godmode/events/event_edit_filter.php @@ -675,10 +675,10 @@ echo ' '; diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index 0d0b77ffd4..3b19e13a52 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -553,16 +553,13 @@ if ($load_filter_modal) { $table->width = '100%'; $table->cellspacing = 4; $table->cellpadding = 4; + $table->styleTable = 'font-weight: bold; color: #555; text-align:left;'; $table->class = 'databox'; - if (is_metaconsole()) { + $filter_id_width = '200px'; + if (is_metaconsole() === true) { $table->cellspacing = 0; $table->cellpadding = 0; $table->class = 'databox filters'; - } - - $table->styleTable = 'font-weight: bold; color: #555; text-align:left;'; - $filter_id_width = '200px'; - if (is_metaconsole()) { $filter_id_width = '150px'; } @@ -587,7 +584,10 @@ if ($load_filter_modal) { __('Load filter'), 'load_filter', false, - 'class="sub upd"', + [ + 'icon' => 'update', + 'mode' => 'secondary', + ], true ); $data[1] .= html_print_input_hidden('load_filter', 1, true); @@ -726,14 +726,14 @@ if ($save_filter_modal) { $table->cellspacing = 4; $table->cellpadding = 4; $table->class = 'databox'; - if (is_metaconsole()) { + if (is_metaconsole() === true) { $table->class = 'databox filters'; $table->cellspacing = 0; $table->cellpadding = 0; } $table->styleTable = 'font-weight: bold; text-align:left;'; - if (!is_metaconsole()) { + if (is_metaconsole() === false) { $table->style[0] = 'width: 50%; width:50%;'; } @@ -824,15 +824,23 @@ if ($save_filter_modal) { $table->rowclass[] = ''; html_print_table($table); - echo '