summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSjon Hortensius <sjon@hortensius.net>2015-03-22 17:59:13 +0100
committerSjon Hortensius <sjon@hortensius.net>2015-03-22 17:59:13 +0100
commite6acc2eee489eb25c2b4fed267ed767c2a19a5e8 (patch)
tree1478c3b4a3acb3f567668b3b20c29e6b902e889f
parent64600f942d99365c8dfd0371bfa3579c5ae65b5c (diff)
downloadpfsense-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.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