diff --git a/pandora_console/general/first_task/planned_downtime.php b/pandora_console/general/first_task/planned_downtime.php index 6bfbe5627b..a88a3e0fc3 100644 --- a/pandora_console/general/first_task/planned_downtime.php +++ b/pandora_console/general/first_task/planned_downtime.php @@ -1,16 +1,32 @@ __('Scehduled Downtime')]); ?>
-

+

- +
diff --git a/pandora_console/godmode/agentes/planned_downtime.list.php b/pandora_console/godmode/agentes/planned_downtime.list.php index 78f717d7d1..fc80aa77ea 100755 --- a/pandora_console/godmode/agentes/planned_downtime.list.php +++ b/pandora_console/godmode/agentes/planned_downtime.list.php @@ -369,7 +369,10 @@ $row[] = html_print_submit_button( __('Search'), 'search', false, - 'class="sub search"', + [ + 'icon' => 'search', + 'mode' => 'mini', + ], true ); @@ -582,17 +585,23 @@ if ($downtimes === false && $filter_performed === false) { // Info message. echo '
'.__('No scheduled downtime').'
'; - echo '
'; - // Create button. if ($write_permisson === true) { - echo ' '; echo '
'; - html_print_submit_button(__('Create'), 'create', false, 'class="sub next"'); + html_print_div( + [ + 'class' => 'action-buttons', + 'content' => html_print_submit_button( + __('Create'), + 'create', + false, + ['icon' => 'next'], + true + ), + ] + ); echo '
'; } - - echo '
'; } else { // Has downtimes. echo '
'; diff --git a/pandora_console/godmode/modules/manage_network_components_form.php b/pandora_console/godmode/modules/manage_network_components_form.php index c39fbc86b6..6323b955fa 100644 --- a/pandora_console/godmode/modules/manage_network_components_form.php +++ b/pandora_console/godmode/modules/manage_network_components_form.php @@ -324,7 +324,7 @@ if ($id_component_type == COMPONENT_TYPE_WMI) { 4, 5, ]; - if (enterprise_installed()) { + if (enterprise_installed() === true) { $categories[] = 10; } @@ -335,7 +335,7 @@ if ($id_component_type == COMPONENT_TYPE_WMI) { 4, 5, ]; - if (enterprise_installed()) { + if (enterprise_installed() === true) { $categories[] = 10; } @@ -350,7 +350,7 @@ echo ''; $table->width = '100%'; $table->class = 'databox filters'; -if (defined('METACONSOLE')) { +if (is_metaconsole() === true) { if ($id) { $table->head[0] = __('Update Network Component'); } else { @@ -363,26 +363,47 @@ if (defined('METACONSOLE')) { html_print_table($table); -echo '
'; -html_print_button(__('Go back'), 'go_back', false, '', 'class="sub cancel"'); html_print_input_hidden('id_component_type', $id_component_type); if ($id) { html_print_input_hidden('update_component', 1); html_print_input_hidden('id', $id); + $buttonCaption = __('Update'); + $buttonIcon = 'update'; + $buttonName = 'upd'; html_print_submit_button(__('Update'), 'upd', false, 'class="sub upd"'); } else { html_print_input_hidden('create_component', 1); html_print_input_hidden('create_network_from_module', 0); - html_print_submit_button(__('Create'), 'crt', false, 'class="sub wand"'); + $buttonCaption = __('Create'); + $buttonIcon = 'wand'; + $buttonName = 'crt'; } -echo '
'; +html_print_div( + [ + 'class' => 'action-buttons', + 'content' => html_print_button( + __('Go back'), + 'go_back', + false, + '', + ['icon' => 'cancel'], + true + ).html_print_submit_button( + $buttonCaption, + $buttonName, + false, + ['icon' => $buttonIcon], + true + ), + ] +); + echo '
'; ui_require_javascript_file('pandora_modules'); ?>