Merge branch 'ent-9662-second-round' of brutus.artica.es:artica/pandorafms into ent-9662-second-round
This commit is contained in:
commit
f01b18b965
|
@ -802,7 +802,7 @@ if ($id_agent_module) {
|
|||
__('Delete'),
|
||||
'deleteModule',
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$id_agent_module.')',
|
||||
'window.location.assign("index.php?sec=gagente&tab=module&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&delete_module='.$id_agent_module.'")',
|
||||
[
|
||||
'icon' => 'delete',
|
||||
'mode' => 'secondary',
|
||||
|
|
|
@ -524,7 +524,7 @@ $data[0] .= html_print_button(
|
|||
__('Manage credentials'),
|
||||
'manage_credentials_button',
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=gmodules&sec2=godmode/groups/group_list&tab=credbox\')',
|
||||
'window.location.assign("index.php?sec=gmodules&sec2=godmode/groups/group_list&tab=credbox")',
|
||||
[ 'mode' => 'link' ],
|
||||
true
|
||||
);
|
||||
|
|
|
@ -351,22 +351,51 @@ if ($result === false) {
|
|||
html_print_input_hidden('multiple_delete', 1);
|
||||
html_print_table($table);
|
||||
echo '</form>';
|
||||
$tablePagination = ui_pagination($total_modules, 'index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules', $offset, 0, true, 'offset', false);
|
||||
|
||||
$actionButtons = [];
|
||||
echo '<form id="form_create" method="post" action="index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules_form">';
|
||||
echo html_print_input_hidden('create_module_inventory', 1);
|
||||
echo '<form>';
|
||||
|
||||
$tablePagination = ui_pagination(
|
||||
$total_modules,
|
||||
'index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules',
|
||||
$offset,
|
||||
0,
|
||||
true,
|
||||
'offset',
|
||||
false
|
||||
);
|
||||
|
||||
$actionButtons = '';
|
||||
|
||||
if ($management_allowed === true) {
|
||||
$actionButtons[] = html_print_submit_button(__('Delete'), 'delete_btn', false, ['icon' => 'delete', 'mode' => 'secondary', 'form' => 'form_delete'], true);
|
||||
$actionButtons[] = html_print_submit_button(__('Create'), 'crt', false, ['icon' => 'wand', 'form' => 'form_create'], true);
|
||||
$actionButtons .= html_print_submit_button(
|
||||
__('Delete'),
|
||||
'delete_btn',
|
||||
false,
|
||||
[
|
||||
'icon' => 'delete',
|
||||
'mode' => 'secondary',
|
||||
'form' => 'form_delete',
|
||||
],
|
||||
true
|
||||
);
|
||||
|
||||
$actionButtons[] = '<form id="form_create" method="post" action="index.php?sec='.$sec.'&sec2=godmode/modules/manage_inventory_modules_form">';
|
||||
$actionButtons[] = html_print_input_hidden('create_module_inventory', 1, true);
|
||||
$actionButtons[] = '<form>';
|
||||
|
||||
$actionButtons .= html_print_submit_button(
|
||||
__('Create'),
|
||||
'crt',
|
||||
false,
|
||||
[
|
||||
'icon' => 'wand',
|
||||
'form' => 'form_create',
|
||||
],
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
html_print_action_buttons(
|
||||
implode('', $actionButtons),
|
||||
$actionButtons,
|
||||
[
|
||||
'type' => 'form_action',
|
||||
'right_content' => $tablePagination,
|
||||
|
|
|
@ -1283,7 +1283,7 @@ if (check_login()) {
|
|||
$linkCaption,
|
||||
'additional_action_for_'.$idAgenteModulo,
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$addedLinkParams.'\')',
|
||||
'window.location.assign("index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module['id_agente_modulo'].'&refr=60'.$addedLinkParams.'")',
|
||||
[
|
||||
'mode' => 'link',
|
||||
'style' => 'justify-content: flex-end;',
|
||||
|
@ -1300,7 +1300,7 @@ if (check_login()) {
|
|||
__('Edit'),
|
||||
'edit_module_'.$idAgenteModulo,
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'\')',
|
||||
'window.location.assign("index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module['id_agente_modulo'].'&edit_module='.$module['id_modulo'].'")',
|
||||
[
|
||||
'mode' => 'link',
|
||||
'style' => 'justify-content: flex-end;',
|
||||
|
|
|
@ -467,7 +467,7 @@ function treeview_printAlertsTable($id_module, $server_data=[], $no_head=false)
|
|||
__('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.'\')',
|
||||
'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
|
||||
),
|
||||
|
|
|
@ -1210,7 +1210,7 @@ function ui_format_alert_row(
|
|||
$forceTitle,
|
||||
'force_execution_'.$alert['id'],
|
||||
false,
|
||||
'window.location.assign(\''.$url.'&id_alert='.$alert['id'].'&refr=60'.$additionUrl.'\');',
|
||||
'window.location.assign("'.$url.'&id_alert='.$alert['id'].'&refr=60'.$additionUrl.'");',
|
||||
[ 'mode' => 'link' ],
|
||||
true
|
||||
);
|
||||
|
|
|
@ -396,7 +396,7 @@ $buttonsRefreshAgent = html_print_button(
|
|||
__('Refresh data'),
|
||||
'refresh_data',
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60\')',
|
||||
'window.location.assign("index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&refr=60")',
|
||||
[ 'mode' => 'link' ],
|
||||
true
|
||||
);
|
||||
|
@ -406,7 +406,7 @@ if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === true) {
|
|||
__('Force checks'),
|
||||
'force_checks',
|
||||
false,
|
||||
'window.location.assign(\'index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'\')',
|
||||
'window.location.assign("index.php?sec=estado&sec2=operation/agentes/ver_agente&flag_agent=1&id_agente='.$id_agente.'")',
|
||||
[ 'mode' => 'link' ],
|
||||
true
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue