apply r/o state to name of system-groups

refs #18
This commit is contained in:
Sjon Hortensius 2015-03-22 17:59:13 +01:00
parent 64600f942d
commit e6acc2eee4

View File

@ -262,8 +262,6 @@ if (isset($id) && $a_group[$id]){
));
}
$ro = ($pconfig['gtype'] == "system");
$section = new Form_Section('Group properties');
if ($_GET['act'] != "new")
@ -274,13 +272,16 @@ if ($_GET['act'] != "new")
));
}
$section->addInput(new Form_Input(
$section->addInput($input = new Form_Input(
'groupname',
'Group name',
'text',
$pconfig['name']
));
if ($pconfig['gtype'] == "system")
$input->setAttribute('readonly', 'readonly');
$section->addInput(new Form_Input(
'description',
'Description',