move snmp options to separate form on device edit, also hide services link when services disabled

git-svn-id: http://www.observium.org/svn/observer/trunk@1928 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-18 16:49:15 +00:00
parent 68709c2b13
commit febdea231e
5 changed files with 120 additions and 60 deletions
+11 -5
View File
@@ -5,11 +5,17 @@ if ($_SESSION['userlevel'] < '7')
print_error("Insufficient Privileges");
} else {
$panes = array('device' => 'Device Settings',
'ports' => 'Port Settings',
'apps' => 'Applications',
'services' => 'Services',
'ipmi' => 'IPMI');
$panes['device'] = 'Device Settings';
$panes['snmp'] = 'SNMP';
$panes['ports'] = 'Port Settings';
$panes['apps'] = 'Applications';
if ($config['enable_services'])
{
$panes['services'] = 'Services';
}
$panes['ipmi'] = 'IPMI';
print_optionbar_start();