summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-02 17:08:46 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-02 17:08:46 -0400
commit6157f724cb6cca8eda5a459e25aa4d96e003e0bb (patch)
tree153b0578555c61235278ff4abd12e76e104adcf5 /src/usr/local/www/system_authservers.php
parent501efbd29456d3db2266d73ff20a8fd8c1e731ac (diff)
downloadpfsense-6157f724cb6cca8eda5a459e25aa4d96e003e0bb.zip
pfsense-6157f724cb6cca8eda5a459e25aa4d96e003e0bb.tar.gz
Fixed 5069
Inputs should be readonly, not disabled when not required. Disabling prevents them from being submitted and breaks the form.
Diffstat (limited to 'src/usr/local/www/system_authservers.php')
-rw-r--r--src/usr/local/www/system_authservers.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php
index 9157caf..8b1825b 100644
--- a/src/usr/local/www/system_authservers.php
+++ b/src/usr/local/www/system_authservers.php
@@ -435,6 +435,8 @@ $section->addInput($input = new Form_Select(
))->toggles();
$form->add($section);
+
+// ==== LDAP settings =========================================================
$section = new Form_Section('LDAP Server Settings');
$section->addClass('toggle-ldap collapse');
@@ -627,6 +629,8 @@ $section->addInput(new Form_Checkbox(
))->setHelp('e.g. user@host becomes user when unchecked.');
$form->add($section);
+
+// ==== RADIUS section ========================================================
$section = new Form_Section('Radius Server Settings');
$section->addClass('toggle-radius collapse');
@@ -775,8 +779,11 @@ events.push(function(){
<?php
if($act == 'edit') {
?>
- $('#type').prop("disabled", true);
- $('#name').prop("disabled", true);
+ $('#type option:not(:selected)').each(function(){
+ $(this).attr('disabled', 'disabled');
+ });
+
+ $('#name').prop("readonly", true);
<?php
}
?>
OpenPOWER on IntegriCloud