From 679386a964c5d909fb967117db5acaf5ce922fd8 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Wed, 8 Nov 2023 10:38:33 +0100 Subject: [PATCH 1/2] #12322 fix pagination --- pandora_console/godmode/setup/os.list.php | 31 ++++++++++++++++------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pandora_console/godmode/setup/os.list.php b/pandora_console/godmode/setup/os.list.php index 20d1b41561..27ae4e82f2 100644 --- a/pandora_console/godmode/setup/os.list.php +++ b/pandora_console/godmode/setup/os.list.php @@ -97,6 +97,24 @@ try { 'column_names' => $column_names, 'ajax_url' => 'include/ajax/os', 'ajax_data' => ['method' => 'drawOSTable'], + 'pagination_options' => [ + [ + $config['block_size'], + 10, + 25, + 100, + 200, + 500, + ], + [ + $config['block_size'], + 10, + 25, + 100, + 200, + 500, + ], + ], 'ajax_postprocess' => 'process_datatables_item(item)', 'no_sortable_columns' => [ -1, @@ -137,6 +155,10 @@ if (is_metaconsole() === true) { true ); $buttons .= ''; +} else { + $buttons .= '
'; + $buttons .= html_print_submit_button(__('Create OS'), 'update_button', false, ['icon' => 'next'], true); + $buttons .= '
'; } html_print_action_buttons( @@ -150,15 +172,6 @@ html_print_action_buttons( echo ''; -echo '
'; - -html_print_action_buttons( - html_print_submit_button(__('Create OS'), 'update_button', false, ['icon' => 'next'], true), - ['type' => 'form_action'] -); - -echo '
'; - ?>