diff --git a/pandora_console/operation/visual_console/view.php b/pandora_console/operation/visual_console/view.php index db891792c0..5d854621f7 100644 --- a/pandora_console/operation/visual_console/view.php +++ b/pandora_console/operation/visual_console/view.php @@ -200,10 +200,16 @@ if (!is_metaconsole()) { html_print_input_hidden('metaconsole', 1); } +$edit_capable = (bool) ( + check_acl($config['id_user'], 0, 'VM') + || check_acl($config['id_user'], 0, 'VW') +); + if ($pure === false) { - echo '
'; - echo ''; + echo html_print_checkbox_switch('edit-mode', 1, false, true); + echo '
'; + } } echo '
'; @@ -487,6 +494,9 @@ ui_require_css_file('form'); handleUpdate ); + // Enable/disable the edition mode. $('input[name=edit-mode]').change(function(event) { if ($(this).prop('checked')) { @@ -499,6 +509,9 @@ ui_require_css_file('form'); $('#edit-controls').css('visibility', 'hidden'); } }); + // Update the data fetch interval. $('select#vc-refr').change(function(event) {