diff options
author | Sjon Hortensius <sjon@hortensius.net> | 2015-03-22 17:59:13 +0100 |
---|---|---|
committer | Sjon Hortensius <sjon@hortensius.net> | 2015-03-22 17:59:13 +0100 |
commit | e6acc2eee489eb25c2b4fed267ed767c2a19a5e8 (patch) | |
tree | 1478c3b4a3acb3f567668b3b20c29e6b902e889f | |
parent | 64600f942d99365c8dfd0371bfa3579c5ae65b5c (diff) | |
download | pfsense-e6acc2eee489eb25c2b4fed267ed767c2a19a5e8.zip pfsense-e6acc2eee489eb25c2b4fed267ed767c2a19a5e8.tar.gz |
apply r/o state to name of system-groups
refs #18
-rw-r--r-- | usr/local/www/system_groupmanager.php | 7 |
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', |