2012-02-29 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* godmode/agentes/module_manager_editor_common.php: Export server select is disabled in module policy editor and in standard module edition can be modified when a policy module is edited. Fixes: #3495682 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5677 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
ac17560e17
commit
c3f66afc9c
|
@ -1,3 +1,11 @@
|
|||
2012-02-29 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* godmode/agentes/module_manager_editor_common.php: Export server
|
||||
select is disabled in module policy editor and in standard module
|
||||
edition can be modified when a policy module is edited.
|
||||
|
||||
Fixes: #3495682
|
||||
|
||||
2012-02-28 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/javascript/pandora_modules.js: "snmpwalk" button is
|
||||
|
|
|
@ -242,9 +242,17 @@ $table_advanced->data[3][1] = html_print_input_text ('min', $min, '', 5, 15, tru
|
|||
$table_advanced->data[3][2] = __('Max. Value');
|
||||
$table_advanced->data[3][3] = html_print_input_text ('max', $max, '', 5, 15, true, $disabledBecauseInPolicy);
|
||||
|
||||
$table_advanced->data[4][0] = __('Export target');
|
||||
$table_advanced->data[4][0] = __('Export target');
|
||||
// Default text message for export target select and disabled option
|
||||
$none_text = __('None');
|
||||
$disabled_export = false;
|
||||
// If code comes from policies disable export select
|
||||
if ($__code_from == 'policies'){
|
||||
$none_text = __('Not needed');
|
||||
$disabled_export = true;
|
||||
}
|
||||
$table_advanced->data[4][1] = html_print_select_from_sql ('SELECT id, name FROM tserver_export ORDER BY name',
|
||||
'id_export', $id_export, '',__('None'),'0', true, false, false, $disabledBecauseInPolicy).ui_print_help_tip (__('In case you use an Export server you can link this module and export data to one these.'), true);
|
||||
'id_export', $id_export, '', $none_text, '0', true, false, false, $disabled_export).ui_print_help_tip (__('In case you use an Export server you can link this module and export data to one these.'), true);
|
||||
$table_advanced->colspan[4][1] = 3;
|
||||
$table_advanced->data[5][0] = __('Unit');
|
||||
$table_advanced->data[5][1] = html_print_input_text ('unit', $unit,
|
||||
|
|
Loading…
Reference in New Issue