From 59699280032bf1d3890b0c4cfe08717053346e27 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 28 Mar 2023 12:39:02 +0200 Subject: [PATCH] 10408-Fix action column & 10398-Events pure mode --- pandora_console/include/ajax/events.php | 4 ++- pandora_console/include/styles/events.css | 33 +++++++++++++++---- .../operation/agentes/alerts_status.php | 10 +++--- pandora_console/operation/events/events.php | 24 +++++++++----- 4 files changed, 50 insertions(+), 21 deletions(-) diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php index 45ee2efd9c..e4e9dc9937 100644 --- a/pandora_console/include/ajax/events.php +++ b/pandora_console/include/ajax/events.php @@ -729,7 +729,9 @@ function load_form_filter() { $("#current_filter").text($('#filter_id option:selected').text()); // Search. - dt_events.draw(false); + $("#table_events") + .DataTable() + .draw(false); } $(document).ready (function() { diff --git a/pandora_console/include/styles/events.css b/pandora_console/include/styles/events.css index 7635280e29..c3f91a1588 100644 --- a/pandora_console/include/styles/events.css +++ b/pandora_console/include/styles/events.css @@ -54,11 +54,6 @@ form.flex-row div.filter_input.large { max-width: 100%; } -div.filter_input > label, -div.filter_input_little > label { - width: 10em; -} - form.flex-row > ul, form.flex-row > ul > li, form.flex-row > .box-shadow.white_table_graph { @@ -504,7 +499,7 @@ div.multi-response-buttons { } .events-refr { - width: 350px; + width: 300px; display: flex; align-items: center; flex-direction: row-reverse; @@ -529,3 +524,29 @@ td#save_filter_form-0-1 > input[type="radio"] { .module-search > input[type="text"] { margin-bottom: 6px; } + +div.agent-min-w100p > span { + width: 400px; +} + +.events-pure { + display: block; + position: initial; + border-radius: 0px; +} + +.events-pure > .white_table_graph_header { + height: 45px; +} + +div.menu_tab_pure { + margin-top: 0px !important; +} + +div#main_pure:has(.events-pure) { + width: 99%; +} + +.margn-b-50px { + margin-bottom: 50px !important; +} diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php index ec9e330d18..fda858cbc6 100755 --- a/pandora_console/operation/agentes/alerts_status.php +++ b/pandora_console/operation/agentes/alerts_status.php @@ -276,8 +276,8 @@ if ((bool) check_acl($config['id_user'], $id_group, 'AW') === true || (bool) che ['text' => 'Module'], ['text' => 'Template'], [ - 'title' => __('Actions'), - 'text' => __('Actions'), + 'title' => __('Action'), + 'text' => __('Action'), 'style' => 'min-width: 15%;', ], ['text' => 'Last fired'], @@ -288,7 +288,7 @@ if ((bool) check_acl($config['id_user'], $id_group, 'AW') === true || (bool) che $columns, ['agent_module_name'], ['template_name'], - ['actions'], + ['action'], ['last_fired'], ['status'] ); @@ -326,14 +326,14 @@ if (is_metaconsole() === true) { 1, 2, 3, - 7, + -1, ]; } else { $no_sortable_columns = [ 0, 1, 2, - 6, + -1, ]; } } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 3ec49048d2..12b3471241 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -1376,7 +1376,7 @@ if ($pure) { // Floating menu - Start. echo '
'; - echo '