mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 03:19:05 +02:00
Merge branch 'ent-11139-icono-de-lupa-descolocado-en-alert-details' into 'develop'
Ent 11139 icono de lupa descolocado en alert details See merge request artica/pandorafms!5877
This commit is contained in:
commit
43e158011a
@ -949,22 +949,22 @@ if ($get_agent_alerts_datatable === true) {
|
|||||||
$tmp->force = $row[2];
|
$tmp->force = $row[2];
|
||||||
$tmp->agent_name = $row[3];
|
$tmp->agent_name = $row[3];
|
||||||
$tmp->agent_module_name = $row[4];
|
$tmp->agent_module_name = $row[4];
|
||||||
$tmp->template_name = $row[5];
|
$tmp->template_name = $row[5].$row[6];
|
||||||
$tmp->action = $row[6];
|
$tmp->action = $row[7];
|
||||||
$tmp->last_fired = $row[7];
|
$tmp->last_fired = $row[8];
|
||||||
$tmp->status = $row[8];
|
$tmp->status = $row[9];
|
||||||
$tmp->validate = $row[9];
|
$tmp->validate = $row[10];
|
||||||
} else {
|
} else {
|
||||||
// Open.
|
// Open.
|
||||||
$tmp->standby = $row[0];
|
$tmp->standby = $row[0];
|
||||||
$tmp->force = $row[1];
|
$tmp->force = $row[1];
|
||||||
$tmp->agent_name = $row[2];
|
$tmp->agent_name = $row[2];
|
||||||
$tmp->agent_module_name = $row[3];
|
$tmp->agent_module_name = $row[3];
|
||||||
$tmp->template_name = $row[4];
|
$tmp->template_name = $row[4].$row[5];
|
||||||
$tmp->action = $row[5];
|
$tmp->action = $row[6];
|
||||||
$tmp->last_fired = $row[6];
|
$tmp->last_fired = $row[7];
|
||||||
$tmp->status = $row[7];
|
$tmp->status = $row[8];
|
||||||
$tmp->validate = $row[8];
|
$tmp->validate = $row[9];
|
||||||
}
|
}
|
||||||
|
|
||||||
$carry[] = $tmp;
|
$carry[] = $tmp;
|
||||||
|
@ -1143,11 +1143,11 @@ function ui_format_alert_row(
|
|||||||
'agent_name' => 3,
|
'agent_name' => 3,
|
||||||
'module_name' => 4,
|
'module_name' => 4,
|
||||||
'description' => 5,
|
'description' => 5,
|
||||||
'template' => 5,
|
'template' => 6,
|
||||||
'action' => 6,
|
'action' => 7,
|
||||||
'last_fired' => 7,
|
'last_fired' => 8,
|
||||||
'status' => 8,
|
'status' => 9,
|
||||||
'validate' => 9,
|
'validate' => 10,
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$index = [
|
$index = [
|
||||||
@ -1155,13 +1155,13 @@ function ui_format_alert_row(
|
|||||||
'standby' => 1,
|
'standby' => 1,
|
||||||
'force_execution' => 2,
|
'force_execution' => 2,
|
||||||
'agent_name' => 3,
|
'agent_name' => 3,
|
||||||
'module_name' => 3,
|
'module_name' => 4,
|
||||||
'description' => 4,
|
'description' => 5,
|
||||||
'template' => 4,
|
'template' => 6,
|
||||||
'action' => 5,
|
'action' => 7,
|
||||||
'last_fired' => 6,
|
'last_fired' => 8,
|
||||||
'status' => 7,
|
'status' => 9,
|
||||||
'validate' => 8,
|
'validate' => 10,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1172,24 +1172,24 @@ function ui_format_alert_row(
|
|||||||
'agent_name' => 2,
|
'agent_name' => 2,
|
||||||
'module_name' => 3,
|
'module_name' => 3,
|
||||||
'description' => 4,
|
'description' => 4,
|
||||||
'template' => 4,
|
'template' => 5,
|
||||||
'action' => 5,
|
'action' => 6,
|
||||||
'last_fired' => 6,
|
'last_fired' => 7,
|
||||||
'status' => 7,
|
'status' => 8,
|
||||||
'validate' => 8,
|
'validate' => 9,
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
$index = [
|
$index = [
|
||||||
'standby' => 0,
|
'standby' => 0,
|
||||||
'force_execution' => 1,
|
'force_execution' => 1,
|
||||||
'agent_name' => 2,
|
'agent_name' => 2,
|
||||||
'module_name' => 2,
|
'module_name' => 3,
|
||||||
'description' => 3,
|
'description' => 4,
|
||||||
'template' => 3,
|
'template' => 5,
|
||||||
'action' => 4,
|
'action' => 6,
|
||||||
'last_fired' => 5,
|
'last_fired' => 7,
|
||||||
'status' => 6,
|
'status' => 8,
|
||||||
'validate' => 7,
|
'validate' => 9,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1322,7 +1322,7 @@ function ui_format_alert_row(
|
|||||||
$additionUrl = '';
|
$additionUrl = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$forceExecButtons[] = html_print_anchor(
|
$forceExecButtons['force_check'] = html_print_anchor(
|
||||||
[
|
[
|
||||||
'href' => $url.'&id_alert='.$alert['id'].'&refr=60'.$additionUrl,
|
'href' => $url.'&id_alert='.$alert['id'].'&refr=60'.$additionUrl,
|
||||||
'content' => html_print_image(
|
'content' => html_print_image(
|
||||||
@ -1338,9 +1338,10 @@ function ui_format_alert_row(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$forceExecButtons[] = html_print_anchor(
|
$forceExecButtons['template'] = html_print_anchor(
|
||||||
[
|
[
|
||||||
'href' => 'ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$template['id'],
|
'href' => 'ajax.php?page=godmode/alerts/alert_templates&get_template_tooltip=1&id_template='.$template['id'],
|
||||||
|
'style' => 'margin-left: 5px;',
|
||||||
'class' => 'template_details',
|
'class' => 'template_details',
|
||||||
'content' => html_print_image(
|
'content' => html_print_image(
|
||||||
'images/details.svg',
|
'images/details.svg',
|
||||||
@ -1351,9 +1352,10 @@ function ui_format_alert_row(
|
|||||||
true
|
true
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$forceExecButtons[] = html_print_anchor(
|
$forceExecButtons['template'] = html_print_anchor(
|
||||||
[
|
[
|
||||||
'href' => ui_get_full_url('/', false, false, false).'/ajax.php?page=enterprise/meta/include/ajax/tree_view.ajax&action=get_template_tooltip&id_template='.$template['id'].'&server_name='.$alert['server_data']['server_name'],
|
'href' => ui_get_full_url('/', false, false, false).'/ajax.php?page=enterprise/meta/include/ajax/tree_view.ajax&action=get_template_tooltip&id_template='.$template['id'].'&server_name='.$alert['server_data']['server_name'],
|
||||||
|
'style' => 'margin-left: 5px;',
|
||||||
'class' => 'template_details',
|
'class' => 'template_details',
|
||||||
'content' => html_print_image(
|
'content' => html_print_image(
|
||||||
'images/details.svg',
|
'images/details.svg',
|
||||||
@ -1365,13 +1367,19 @@ function ui_format_alert_row(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$data[$index['force_execution']] = html_print_div(
|
if (isset($forceExecButtons['force_check'])) {
|
||||||
[
|
$data[$index['force_execution']] = html_print_div(
|
||||||
'class' => 'table_action_buttons flex',
|
[
|
||||||
'content' => implode('', $forceExecButtons),
|
'class' => 'table_action_buttons flex',
|
||||||
],
|
'content' => $forceExecButtons['force_check'],
|
||||||
true
|
],
|
||||||
);
|
true
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($forceExecButtons['template'])) {
|
||||||
|
$data[$index['template']] = $forceExecButtons['template'];
|
||||||
|
}
|
||||||
|
|
||||||
$data[$index['agent_name']] = $disabledHtmlStart;
|
$data[$index['agent_name']] = $disabledHtmlStart;
|
||||||
if ($agent == 0) {
|
if ($agent == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user