summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/system_groupmanager.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php
index 9cb7513..6a16bea 100644
--- a/usr/local/www/system_groupmanager.php
+++ b/usr/local/www/system_groupmanager.php
@@ -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',
OpenPOWER on IntegriCloud