mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-11299-advanced-options-de-configuracion-de-agente-no-aparece-en-community' into 'develop'
Ent 11299 advanced options de configuracion de agente no aparece en community See merge request artica/pandorafms!5928
This commit is contained in:
commit
e285b923f6
@ -295,25 +295,25 @@ if (enterprise_installed() === true) {
|
|||||||
$cps_val = $cps;
|
$cps_val = $cps;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Parent agents.
|
// Parent agents.
|
||||||
$paramsParentAgent = [];
|
$paramsParentAgent = [];
|
||||||
$paramsParentAgent['return'] = true;
|
$paramsParentAgent['return'] = true;
|
||||||
$paramsParentAgent['show_helptip'] = false;
|
$paramsParentAgent['show_helptip'] = false;
|
||||||
$paramsParentAgent['input_name'] = 'id_parent';
|
$paramsParentAgent['input_name'] = 'id_parent';
|
||||||
$paramsParentAgent['print_hidden_input_idagent'] = true;
|
$paramsParentAgent['print_hidden_input_idagent'] = true;
|
||||||
$paramsParentAgent['hidden_input_idagent_name'] = 'id_agent_parent';
|
$paramsParentAgent['hidden_input_idagent_name'] = 'id_agent_parent';
|
||||||
$paramsParentAgent['hidden_input_idagent_value'] = $id_parent;
|
$paramsParentAgent['hidden_input_idagent_value'] = $id_parent;
|
||||||
$paramsParentAgent['value'] = db_get_value('alias', 'tagente', 'id_agente', $id_parent);
|
$paramsParentAgent['value'] = db_get_value('alias', 'tagente', 'id_agente', $id_parent);
|
||||||
$paramsParentAgent['selectbox_id'] = 'cascade_protection_module';
|
$paramsParentAgent['selectbox_id'] = 'cascade_protection_module';
|
||||||
$paramsParentAgent['javascript_is_function_select'] = true;
|
$paramsParentAgent['javascript_is_function_select'] = true;
|
||||||
$paramsParentAgent['cascade_protection'] = true;
|
$paramsParentAgent['cascade_protection'] = true;
|
||||||
$paramsParentAgent['input_style'] = 'width: 100%;';
|
$paramsParentAgent['input_style'] = 'width: 100%;';
|
||||||
|
|
||||||
if ($id_agente !== 0) {
|
if ($id_agente !== 0) {
|
||||||
// Deletes the agent's offspring.
|
// Deletes the agent's offspring.
|
||||||
$paramsParentAgent['delete_offspring_agents'] = $id_agente;
|
$paramsParentAgent['delete_offspring_agents'] = $id_agente;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$listIcons = gis_get_array_list_icons();
|
$listIcons = gis_get_array_list_icons();
|
||||||
@ -631,15 +631,18 @@ $tableAdvancedAgent->style = [];
|
|||||||
$tableAdvancedAgent->cellclass = [];
|
$tableAdvancedAgent->cellclass = [];
|
||||||
$tableAdvancedAgent->colspan = [];
|
$tableAdvancedAgent->colspan = [];
|
||||||
$tableAdvancedAgent->rowspan = [];
|
$tableAdvancedAgent->rowspan = [];
|
||||||
// Secondary groups.
|
|
||||||
$tableAdvancedAgent->data['secondary_groups'][] = html_print_label_input_block(
|
if (enterprise_installed() === true) {
|
||||||
__('Secondary groups'),
|
// Secondary groups.
|
||||||
html_print_select_agent_secondary(
|
$tableAdvancedAgent->data['secondary_groups'][] = html_print_label_input_block(
|
||||||
$agent,
|
__('Secondary groups'),
|
||||||
$id_agente,
|
html_print_select_agent_secondary(
|
||||||
['selected_post' => $secondary_groups]
|
$agent,
|
||||||
)
|
$id_agente,
|
||||||
);
|
['selected_post' => $secondary_groups]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Parent agent.
|
// Parent agent.
|
||||||
$tableAdvancedAgent->data['parent_agent'][] = html_print_label_input_block(
|
$tableAdvancedAgent->data['parent_agent'][] = html_print_label_input_block(
|
||||||
@ -903,18 +906,16 @@ $tableAdvancedAgent->data['safe_operation'][] = html_print_label_input_block(
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (enterprise_installed() === true) {
|
ui_toggle(
|
||||||
ui_toggle(
|
html_print_table($tableAdvancedAgent, true),
|
||||||
html_print_table($tableAdvancedAgent, true),
|
'<span class="subsection_header_title">'.__('Advanced options').'</span>',
|
||||||
'<span class="subsection_header_title">'.__('Advanced options').'</span>',
|
'',
|
||||||
'',
|
'',
|
||||||
'',
|
true,
|
||||||
true,
|
false,
|
||||||
false,
|
'white_box_content',
|
||||||
'white_box_content',
|
'no-border white_table_graph'
|
||||||
'no-border white_table_graph'
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Custom fields.
|
// Custom fields.
|
||||||
$customOutputData = '';
|
$customOutputData = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user