';
$data[3] .= '';
$data[3] .= '';
- $data[3] .= '- ';
+ $data[3] .= '
- ';
if ($alert['disabled']) {
$data[3] .= '';
} else {
@@ -758,7 +758,7 @@ foreach ($simple_alerts as $alert) {
$data[3] .= '
| ';
- $data[3] .= '';
+ $data[3] .= ' | ';
$data[3] .= ui_print_help_tip(__('The default actions will be executed every time that the alert is fired and no other action is executed'), true);
// Is possible manage actions if have LW permissions in the agent group of the alert module
if (check_acl_one_of_groups($config['id_user'], $all_groups, 'LW')) {
@@ -786,7 +786,7 @@ foreach ($simple_alerts as $alert) {
true,
[
'title' => __('Update action'),
- 'class' => 'main_menu_icon invert_filter',
+ 'class' => 'main_menu_icon invert_filter action_button_hidden',
'onclick' => 'show_display_update_action(\''.$action['id'].'\',\''.$alert['id'].'\',\''.$alert['id_agent_module'].'\',\''.$action_id.'\',\''.$alert['id_agent_module'].'\')',
]
);
diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index e926f32454..111d1a4c73 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -1502,14 +1502,41 @@ function ui_format_alert_row(
metaconsole_restore_db();
}
- if (empty($actions) === false || $actionDefault != '') {
- $actionText = '';
+ $actionText = '';
+
+ if ($actionDefault !== '' && $actionDefault !== false) {
+ $actionDefault_name = db_get_sql(
+ sprintf(
+ 'SELECT name FROM talert_actions WHERE id = %d',
+ $actionDefault
+ )
+ );
foreach ($actions as $action) {
- $actionText .= '- '.$action['name'];
+ if ($actionDefault_name === $action['name']) {
+ $hide_actionDefault = true;
+ } else {
+ $hide_actionDefault = false;
+ }
+ }
+
+ if ($hide_actionDefault !== true) {
+ $actionText .= $actionDefault_name.' ('.__('Default').')';
+ }
+ }
+
+ if (empty($actions) === false || $actionDefault != '') {
+ $actionText .= '
';
+ foreach ($actions as $action) {
+ $actionText .= '- ';
+ $actionText .= '
';
+ $actionText .= ' ';
+ $actionText .= $action['name'];
if ($action['fires_min'] != $action['fires_max']) {
$actionText .= ' ('.$action['fires_min'].' / '.$action['fires_max'].')';
}
+ $actionText .= ' ';
+ $actionText .= ' ';
$actionText .= ui_print_help_tip(__('The default actions will be executed every time that the alert is fired and no other action is executed'), true);
// Is possible manage actions if have LW permissions in the agent group of the alert module.
if (is_metaconsole() === true) {
@@ -1520,7 +1547,7 @@ function ui_format_alert_row(
[
'alt' => __('Delete action'),
'title' => __('Delete action'),
- 'class' => 'main_menu_icon invert_filter vertical_baseline',
+ 'class' => 'main_menu_icon invert_filter vertical_baseline action_button_hidden',
]
).'';
}
@@ -1534,7 +1561,7 @@ function ui_format_alert_row(
true,
[
'title' => __('Update action'),
- 'class' => 'main_menu_icon invert_filter',
+ 'class' => 'main_menu_icon invert_filter action_button_hidden',
'onclick' => 'show_display_update_action(\''.$action['original_id'].'\',\''.$alert['id'].'\',\''.$alert['id_agent_module'].'\',\''.$action['original_id'].'\',\''.$alert['agent_name'].'\')',
]
);
@@ -1542,32 +1569,15 @@ function ui_format_alert_row(
}
}
+ $actionText .= ' ';
+ $actionText .= ' ';
+
$actionText .= '';
$actionText .= ' ';
$actionText .= ' ';
}
$actionText .= ' ';
-
- if ($actionDefault !== '' && $actionDefault !== false) {
- $actionDefault_name = db_get_sql(
- sprintf(
- 'SELECT name FROM talert_actions WHERE id = %d',
- $actionDefault
- )
- );
- foreach ($actions as $action) {
- if ($actionDefault_name === $action['name']) {
- $hide_actionDefault = true;
- } else {
- $hide_actionDefault = false;
- }
- }
-
- if ($hide_actionDefault !== true) {
- $actionText .= $actionDefault_name.' ('.__('Default').')';
- }
- }
}
$data[$index['action']] = $actionText;
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 8d04a9181f..01d73a8c8c 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -7163,6 +7163,10 @@ div.graph div.legend table {
margin-left: 0px;
}
+.mrgn_lft_0px_imp {
+ margin-left: 0px !important;
+}
+
.mrgn_lft_2px {
margin-left: 2px;
}
@@ -7305,6 +7309,10 @@ div.graph div.legend table {
margin-top: -15px;
}
+.mrgn_top-22px {
+ margin-top: -22px;
+}
+
.mrgn_top_0px {
margin-top: 0px;
}
|