mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
Agent module manager fixed and improve action buttons
This commit is contained in:
parent
8c852fb3df
commit
8c1bd2c1ee
@ -757,11 +757,7 @@ $total_modules = db_get_value_sql($sql_total_modules);
|
||||
|
||||
$total_modules = (isset($total_modules) === true) ? $total_modules : 0;
|
||||
|
||||
if ($modules === false) {
|
||||
ui_print_empty_data(__('No available data to show'));
|
||||
return;
|
||||
}
|
||||
|
||||
if ($modules !== false) {
|
||||
// Prepare pagination.
|
||||
$url = sprintf(
|
||||
'?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente=%s&sort_field=%s&sort=%s&search_string=%s',
|
||||
@ -1198,12 +1194,16 @@ foreach ($modules as $module) {
|
||||
$table->cellclass[] = [8 => 'table_action_buttons'];
|
||||
}
|
||||
|
||||
if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW')) {
|
||||
if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === true) {
|
||||
echo '<form class="datatable_form" method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module"
|
||||
onsubmit="if (! confirm (\''.__('Are you sure?').'\')) return false">';
|
||||
}
|
||||
|
||||
// Print module table.
|
||||
html_print_table($table);
|
||||
} else {
|
||||
ui_print_empty_data(__('No available data to show'));
|
||||
}
|
||||
|
||||
if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === true) {
|
||||
html_print_input_hidden('submit_modules_action', 1);
|
||||
@ -1217,6 +1217,7 @@ if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === tr
|
||||
true
|
||||
);
|
||||
|
||||
if ($modules !== false) {
|
||||
$actionButtons .= html_print_submit_button(
|
||||
__('Execute action'),
|
||||
'submit_modules_action',
|
||||
@ -1246,6 +1247,7 @@ if ((bool) check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === tr
|
||||
false,
|
||||
'width: 260px;',
|
||||
);
|
||||
}
|
||||
|
||||
html_print_action_buttons(
|
||||
$actionButtons,
|
||||
|
@ -10691,8 +10691,9 @@ tr.bring_next_field {
|
||||
}
|
||||
|
||||
.fixed_action_buttons_size {
|
||||
/*width: 1064px;*/
|
||||
width: 1116px;
|
||||
width: -webkit-fill-available;
|
||||
width: -moz-fill-available;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.action_buttons_background_mask {
|
||||
|
Loading…
x
Reference in New Issue
Block a user