From 99b845db3f4c89323152ff08c06535d623fc0e59 Mon Sep 17 00:00:00 2001 From: Pablo Aragon Date: Tue, 21 Mar 2023 18:12:02 +0100 Subject: [PATCH] progress bar --- pandora_console/godmode/agentes/inventory_manager.php | 2 +- pandora_console/godmode/agentes/modificar_agente.php | 2 +- pandora_console/godmode/wizards/DiscoveryTaskList.class.php | 5 +++-- pandora_console/include/functions_treeview.php | 5 ++--- pandora_console/include/styles/pandora.css | 4 ++-- pandora_console/include/styles/progress.css | 4 ++-- pandora_console/include/styles/tree.css | 4 ++++ pandora_console/operation/agentes/estado_generalagente.php | 3 +-- 8 files changed, 16 insertions(+), 13 deletions(-) diff --git a/pandora_console/godmode/agentes/inventory_manager.php b/pandora_console/godmode/agentes/inventory_manager.php index 646ad3b897..59a7a869a5 100644 --- a/pandora_console/godmode/agentes/inventory_manager.php +++ b/pandora_console/godmode/agentes/inventory_manager.php @@ -225,7 +225,7 @@ if (db_get_num_rows($sql) == 0) { } else { $table = new stdClass(); $table->width = '100%'; - $table->class = 'databox info_trable'; + $table->class = 'databox info_table max_floating_element_size'; $table->data = []; $table->head = []; $table->styleTable = ''; diff --git a/pandora_console/godmode/agentes/modificar_agente.php b/pandora_console/godmode/agentes/modificar_agente.php index 8922034a93..343c89e50e 100644 --- a/pandora_console/godmode/agentes/modificar_agente.php +++ b/pandora_console/godmode/agentes/modificar_agente.php @@ -794,7 +794,7 @@ if ($agents !== false) { // Agent name column (1). Agent name. $agentNameColumn = html_print_anchor( [ - 'href' => ui_get_full_url($agentNameUrl), + 'href' => ui_get_full_url($agentViewUrl), 'title' => $agent['nombre'], 'content' => ui_print_truncate_text($agent['alias'], 'agent_medium').implode('', $additionalDataAgentName), ], diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index 913e08e104..120eeda293 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -874,7 +874,7 @@ class DiscoveryTaskList extends HTML $data[7] = ui_progress( $task['status'], '100%', - 1.9, + 1.2, // Color. '#ececec', // Return. @@ -891,7 +891,8 @@ class DiscoveryTaskList extends HTML 'id' => $task['id_rt'], 'method' => 'taskProgress', ], - ] + ], + '' ); } diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 86367a1097..a6d6d0d2c7 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -657,7 +657,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) $table->data['description'] = $row; // Last contact. - $last_contact = ui_print_timestamp($agent['ultimo_contacto'], true, ['class' => 'font_11']); + $last_contact = ui_print_timestamp($agent['ultimo_contacto'], true, ['style' => 'font-size: 13px;']); if ($agent['ultimo_contacto_remoto'] === '01-01-1970 00:00:00') { $last_remote_contact = __('Never'); @@ -689,8 +689,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) '#ececec', true, '', - false, - 'line-height: 13px;' + false ); $table->data['next_contact'] = $row; diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index bf60df270e..2ae0c3305d 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -11681,9 +11681,9 @@ ul.tag-editor { } .select2-container--default .select2-search--inline .select2-search__field { - height: 20px; + height: 12px; padding-left: 5px !important; - font-size: 20px !important; + font-size: 12px !important; } div.ui-dialog-buttonset > button.ui-button.ui-corner-all.ui-widget { diff --git a/pandora_console/include/styles/progress.css b/pandora_console/include/styles/progress.css index 66921d7da6..9561797f77 100644 --- a/pandora_console/include/styles/progress.css +++ b/pandora_console/include/styles/progress.css @@ -6,8 +6,8 @@ display: inline-block; display: flex; border-radius: 4px; - line-height: 24px; - font-size: 11pt; + line-height: 9pt; + font-size: 9pt; } .progress_main_noborder { diff --git a/pandora_console/include/styles/tree.css b/pandora_console/include/styles/tree.css index 4c552e5e6d..88f342dec3 100644 --- a/pandora_console/include/styles/tree.css +++ b/pandora_console/include/styles/tree.css @@ -407,3 +407,7 @@ div#tree-controller-recipient { .tree-node .node-icon.node-status { border: 0; } + +.max-graph-tree-view { + width: calc(100% - 100px); +} diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php index c770017587..dd842ee0b1 100755 --- a/pandora_console/operation/agentes/estado_generalagente.php +++ b/pandora_console/operation/agentes/estado_generalagente.php @@ -483,8 +483,7 @@ $data[1] = ui_progress( 'refresh_contact' => 1, ], - ], - 'line-height: 13px;' + ] ); $table_contact->data[] = $data;