From e8e7dcc5ecf14b471664e914be50b4b51f8885c3 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 31 Mar 2023 13:37:43 +0200 Subject: [PATCH] Actions select bulk operations view --- pandora_console/godmode/massive/massive_edit_agents.php | 4 ++-- pandora_console/godmode/massive/massive_edit_users.php | 1 + .../godmode/massive/massive_enable_disable_alerts.php | 2 ++ pandora_console/godmode/massive/massive_operations.php | 4 +++- .../godmode/massive/massive_standby_alerts.php | 2 ++ pandora_console/include/styles/pandora.css | 8 ++++++++ 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/massive/massive_edit_agents.php b/pandora_console/godmode/massive/massive_edit_agents.php index a6bb7a9322..41c8a9d816 100755 --- a/pandora_console/godmode/massive/massive_edit_agents.php +++ b/pandora_console/godmode/massive/massive_edit_agents.php @@ -1257,11 +1257,11 @@ echo ''; html_print_input_hidden('id_agente', $id_agente); +echo ''; attachActionButton('update_agents', 'update', $table->width, false, $SelectAction); +echo ''; // Shown and hide div. -echo ''; - ui_require_jquery_file('form'); ui_require_jquery_file('pandora.controls'); ui_require_jquery_file('ajaxqueue'); diff --git a/pandora_console/godmode/massive/massive_edit_users.php b/pandora_console/godmode/massive/massive_edit_users.php index 928b761694..46022c2833 100644 --- a/pandora_console/godmode/massive/massive_edit_users.php +++ b/pandora_console/godmode/massive/massive_edit_users.php @@ -555,6 +555,7 @@ echo sprintf( $status ); echo ''; +echo ''; attachActionButton('edit_users', 'update', '100%', false, $SelectAction); diff --git a/pandora_console/godmode/massive/massive_enable_disable_alerts.php b/pandora_console/godmode/massive/massive_enable_disable_alerts.php index 78d84d6b57..120fae61b2 100644 --- a/pandora_console/godmode/massive/massive_enable_disable_alerts.php +++ b/pandora_console/godmode/massive/massive_enable_disable_alerts.php @@ -249,6 +249,8 @@ $table->data[5][1] .= ''; html_print_table($table); +html_print_action_buttons('', ['right_content' => $SelectAction, 'class' => 'pdd_b_10px_important pdd_t_10px_important']); + echo ''; ui_require_jquery_file('form'); diff --git a/pandora_console/godmode/massive/massive_operations.php b/pandora_console/godmode/massive/massive_operations.php index fb2331a5dd..b4d4474c20 100755 --- a/pandora_console/godmode/massive/massive_operations.php +++ b/pandora_console/godmode/massive/massive_operations.php @@ -448,7 +448,9 @@ if ($option === 'edit_agents' || $option === 'edit_modules') { $tip = ui_print_help_tip(__('The blank fields will not be updated'), true); } -$SelectAction = '
'; +global $SelectAction; + +$SelectAction = ''; $SelectAction .= ''._('Action').''; $SelectAction .= html_print_select( $options, diff --git a/pandora_console/godmode/massive/massive_standby_alerts.php b/pandora_console/godmode/massive/massive_standby_alerts.php index 704f17bfc8..9de731f40e 100644 --- a/pandora_console/godmode/massive/massive_standby_alerts.php +++ b/pandora_console/godmode/massive/massive_standby_alerts.php @@ -277,6 +277,8 @@ $table->data[5][1] .= '
'; html_print_table($table); +html_print_action_buttons('', ['right_content' => $SelectAction, 'class' => 'pdd_b_10px_important pdd_t_10px_important']); + echo ''; ui_require_jquery_file('form'); diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 508daaca8a..4bad6cf027 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -7546,6 +7546,10 @@ div.graph div.legend table { padding-bottom: 10px; } +.pdd_b_10px_important { + padding-bottom: 10px !important; +} + .pdd_b_20px { padding-bottom: 20px; } @@ -7616,6 +7620,10 @@ div.graph div.legend table { padding-top: 10px; } +.pdd_t_10px_important { + padding-top: 10px !important; +} + .pdd_t_15px { padding-top: 15px; }