From e6acc2eee489eb25c2b4fed267ed767c2a19a5e8 Mon Sep 17 00:00:00 2001 From: Sjon Hortensius Date: Sun, 22 Mar 2015 17:59:13 +0100 Subject: [PATCH] apply r/o state to name of system-groups refs #18 --- usr/local/www/system_groupmanager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 9cb7513b5a..6a16bea0c4 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',