diff --git a/pandora_console/extensions/module_groups.php b/pandora_console/extensions/module_groups.php index d8b432da08..5e0a1aadd9 100644 --- a/pandora_console/extensions/module_groups.php +++ b/pandora_console/extensions/module_groups.php @@ -266,32 +266,68 @@ function mainModuleGroups() ] ); - echo " - "; - echo ""; + $output = ""; - echo '
'; - echo __('Search by agent group').' '; - html_print_input_text('agent_group_search', $agent_group_search); - - echo ''; - echo __('Search by module group').' '; - html_print_input_text('module_group_search', $module_group_search); - - echo ''; - html_print_submit_button( - __('Search'), - 'srcbutton', - false, - [ - 'icon' => 'search', - 'mode' => 'secondary', - ] + $output .= ""; + $output .= ''; + $output .= '
'; + $output .= html_print_label_input_block( + __('Search by agent group'), + html_print_input_text( + 'agent_group_search', + $agent_group_search, + '', + 50, + 255, + true + ) + ); + + $output .= ''; + $output .= html_print_label_input_block( + __('Search by module group'), + html_print_input_text( + 'module_group_search', + $module_group_search, + '', + 50, + 255, + true + ) + ); + $output .= '
'; + + $output .= html_print_div( + [ + 'class' => 'action-buttons', + 'content' => html_print_submit_button( + __('Filter'), + 'srcbutton', + false, + [ + 'icon' => 'search', + 'mode' => 'mini', + ], + true + ), + ], + true + ); + + $output .= ''; + + ui_toggle( + $output, + ''.__('Filters').'', + 'filter_form', + '', + true, + false, + '', + 'white-box-content', + 'box-flat white_table_graph fixed_filter_bar' ); - echo ''; - echo '
'; - echo '
'; $cell_style = ' min-width: 60px; @@ -386,13 +422,24 @@ function mainModuleGroups() $table->headstyle = $headstyle; $table->data = $data; - ui_pagination($counter); - echo "
"; html_print_table($table); echo '
'; - ui_pagination($counter); + $tablePagination = ui_pagination( + $counter, + false, + 0, + 0, + true, + 'offset', + false + ); + + html_print_action_buttons( + '', + [ 'right_content' => $tablePagination ] + ); echo "
"; echo ''; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index 76f249e5a4..63877db4b4 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -1981,18 +1981,9 @@ table.databox { background-color: #fff; border-spacing: 0px; border-radius: 6px; - /*-moz-box-shadow: 0 3px 6px 0 rgb(0 0 0 / 13%);*/ - /* -webkit-box-shadow: 0 3px 6px 0 rgb(0 0 0 / 13%); */ - /* box-shadow: 0 3px 6px 0 rgb(0 0 0 / 13%); */ - border: 2px solid #c0ccdc; - padding: 20px; margin-bottom: 20px; width: calc(100% - 40px); width: -webkit-fill-available; - /* - width: -webkit-fill-available; - width: -moz-available; - */ } .databox > tbody > tr > td {