mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
#9478 fix delete mesage and permisions
This commit is contained in:
parent
1c69208a6a
commit
8f227233fd
@ -1510,6 +1510,9 @@ function ui_format_alert_row(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Edit.
|
// Edit.
|
||||||
|
if (check_acl($config['id_user'], $id_group, 'LW')
|
||||||
|
|| check_acl($config['id_user'], $id_group, 'LM')
|
||||||
|
) {
|
||||||
$tableActionButtons[] = html_print_input_image(
|
$tableActionButtons[] = html_print_input_image(
|
||||||
'update_action',
|
'update_action',
|
||||||
'/images/edit.svg',
|
'/images/edit.svg',
|
||||||
@ -1523,22 +1526,20 @@ function ui_format_alert_row(
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
$tableActionButtons[] = html_print_input_hidden('id_agent_module', $alert['id_agent_module'], true);
|
$tableActionButtons[] = html_print_input_hidden('id_agent_module', $alert['id_agent_module'], true);
|
||||||
$tableActionButtons[] = '<form class="delete_alert_form display_in" action="index.php?sec=galertas&sec2=godmode/alerts/alert_list&tab=list" method="post" >';
|
}
|
||||||
$tableActionButtons[] = html_print_input_image(
|
|
||||||
'delete',
|
if (check_acl($config['id_user'], $id_group, 'LM')
|
||||||
|
) {
|
||||||
|
$tableActionButtons[] = '<a href="index.php?sec=galertas&sec2=godmode/alerts/alert_list&tab=list&delete_alert=1&id_alert='.$alert['id'].'&id_agent='.$alert['agent_name'].'" onClick="if (!confirm(\' '.__('Are you sure you want to delete alert?').'\')) return false;">'.html_print_image(
|
||||||
'images/delete.svg',
|
'images/delete.svg',
|
||||||
1,
|
|
||||||
'',
|
|
||||||
true,
|
true,
|
||||||
[
|
[
|
||||||
|
'alt' => __('Delete'),
|
||||||
'title' => __('Delete'),
|
'title' => __('Delete'),
|
||||||
'class' => 'invert_filter main_menu_icon',
|
'class' => 'main_menu_icon invert_filter vertical_baseline',
|
||||||
]
|
]
|
||||||
);
|
).'</a>';
|
||||||
$tableActionButtons[] = html_print_input_hidden('delete_alert', 1, true);
|
}
|
||||||
$tableActionButtons[] = html_print_input_hidden('id_alert', $alert['id'], true);
|
|
||||||
$tableActionButtons[] = html_print_input_hidden('id_agent', $alert['agent_name'], true);
|
|
||||||
$tableActionButtons[] = '</form>';
|
|
||||||
|
|
||||||
$data[$index['actions']] = html_print_div(
|
$data[$index['actions']] = html_print_div(
|
||||||
[
|
[
|
||||||
|
@ -7299,6 +7299,9 @@ div.graph div.legend table {
|
|||||||
.vertical_middle {
|
.vertical_middle {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
.vertical_baseline {
|
||||||
|
vertical-align: baseline !important;
|
||||||
|
}
|
||||||
|
|
||||||
.mrg_btt_7 {
|
.mrg_btt_7 {
|
||||||
margin-bottom: 7px;
|
margin-bottom: 7px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user