diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php
index deccb2cc1f..b92aae0ce2 100755
--- a/pandora_console/include/functions_treeview.php
+++ b/pandora_console/include/functions_treeview.php
@@ -459,16 +459,20 @@ function treeview_printAlertsTable($id_module, $server_data=[], $no_head=false)
html_print_table($table2);
if ($user_access_node && check_acl($config['id_user'], $id_group, 'LW')) {
- // Actions table
- echo '
';
- html_print_button(
- __('Go to alerts edition'),
- 'upd_button',
- false,
- 'window.location.assign("'.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&search=1&module_name='.$module_name.'&id_agente='.$agent_id.$url_hash.'")',
- ['icon' => 'alert']
+ // Actions button.
+ html_print_div(
+ [
+ 'class' => 'action-buttons',
+ 'content' => html_print_button(
+ __('Go to alerts edition'),
+ 'upd_button',
+ false,
+ 'window.location.assign(\''.$console_url.'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&tab=alert&search=1&module_name='.$module_name.'&id_agente='.$agent_id.$url_hash.'\')',
+ ['icon' => 'alert'],
+ true
+ ),
+ ]
);
- echo '
';
}
if (empty($server_data) === false && is_metaconsole() === true) {