From d0fa29d2de13707c68787151535c239e9e34fac5 Mon Sep 17 00:00:00 2001
From: "jose.gonzalez@pandorafms.com"
Date: Mon, 24 Oct 2022 12:06:45 +0200
Subject: [PATCH] Adapted some buttons
---
.../general/first_task/service_list.php | 7 ++++-
.../general/first_task/transactional_list.php | 7 ++++-
.../godmode/servers/modificar_server.php | 31 +++++++++++++------
3 files changed, 34 insertions(+), 11 deletions(-)
diff --git a/pandora_console/general/first_task/service_list.php b/pandora_console/general/first_task/service_list.php
index f3b816c006..0ea4a01878 100755
--- a/pandora_console/general/first_task/service_list.php
+++ b/pandora_console/general/first_task/service_list.php
@@ -37,7 +37,12 @@ ui_require_css_file('first_task');
?>
diff --git a/pandora_console/general/first_task/transactional_list.php b/pandora_console/general/first_task/transactional_list.php
index c1d9ef2f42..4fe3f52e7a 100644
--- a/pandora_console/general/first_task/transactional_list.php
+++ b/pandora_console/general/first_task/transactional_list.php
@@ -38,7 +38,12 @@ Transaction graphs represent the different processes within our infrastructure t
?>
diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php
index 34524c6aa7..6aec7b7ba7 100644
--- a/pandora_console/godmode/servers/modificar_server.php
+++ b/pandora_console/godmode/servers/modificar_server.php
@@ -96,17 +96,30 @@ if (isset($_GET['server'])) {
html_print_table($table);
- echo '';
- echo '';
- echo '
';
+ html_print_div(
+ [
+ 'class' => 'action-buttons w100p',
+ 'content' => html_print_submit_button(
+ __('Update'),
+ '',
+ false,
+ [ 'icon' => 'update' ],
+ true
+ ),
+ ]
+ );
+
echo '';
- if ($row['server_type'] == 13) {
- echo '';
- ui_toggle($content, __('Credential boxes'), '', 'toggle_credential', false);
- echo '
';
+ if ((int) $row['server_type'] === 13) {
+ html_print_div(
+ [
+ 'class' => 'mrgn_top_20px',
+ 'content' => ui_toggle($content, __('Credential boxes'), '', 'toggle_credential', false, true),
+ ],
+ );
}
-} else if (isset($_GET['server_remote'])) {
+} else if (isset($_GET['server_remote']) === true) {
// Headers.
$id_server = get_parameter_get('server_remote');
$ext = get_parameter('ext', '');
@@ -168,7 +181,7 @@ if (isset($_GET['server'])) {
ui_print_page_header(__('%s servers', get_product_name()), 'images/gm_servers.png', false, '', true);
// Move SNMP modules back to the enterprise server.
- if (isset($_GET['server_reset_snmp_enterprise'])) {
+ if (isset($_GET['server_reset_snmp_enterprise']) === true) {
$result = db_process_sql('UPDATE tagente_estado SET last_error=0');
if ($result === false) {