diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index fe27bf4bb1..bc544b2861 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -1070,13 +1070,57 @@ if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === tr ); echo ''; } + +$modalCreateModule = '
'; +$input_type = html_print_input_hidden('edit_module', 1, true); +$input_type .= html_print_select( + policies_type_modules_availables($sec2), + 'moduletype', + '', + '', + '', + '', + true, + false, + false, + '', + false, + 'max-width:300px;' +); + +$modalCreateModule .= $input_type; +$modalCreateModule .= html_print_div( + [ + 'class' => 'action-buttons', + 'content' => html_print_submit_button( + __('Create'), + 'create_module', + false, + [ + 'icon' => 'next', + 'mode' => 'mini secondary', + ], + true + ), + ], + true +); +$modalCreateModule .= '
'; + +html_print_div( + [ + 'id' => 'modal', + 'style' => 'display: none', + 'content' => $modalCreateModule, + ] +); ?>