summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_authservers.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-09-02 15:59:02 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-09-02 16:00:14 -0400
commitea342b0f50e1c2656d70a4beac571c375fe4bb35 (patch)
treed3b13b4f34bd9c84ce8b986769f96e9b7e1bc3ad /src/usr/local/www/system_authservers.php
parent489059e39c089b096807616000159aa134e97087 (diff)
downloadpfsense-ea342b0f50e1c2656d70a4beac571c375fe4bb35.zip
pfsense-ea342b0f50e1c2656d70a4beac571c375fe4bb35.tar.gz
Fixed #6065
Method setDiasabled() seems to not only disable the input, but prevent it from being submitted. Replasced with jQuery
Diffstat (limited to 'src/usr/local/www/system_authservers.php')
-rw-r--r--src/usr/local/www/system_authservers.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php
index cdc9011..691ebef 100644
--- a/src/usr/local/www/system_authservers.php
+++ b/src/usr/local/www/system_authservers.php
@@ -359,7 +359,7 @@ include("head.inc");
if ($input_errors)
print_input_errors($input_errors);
if ($savemsg)
- print_info_box($savemsg);
+ print_info_box($savemsg, 'success');
$tab_array = array();
$tab_array[] = array(gettext("Users"), false, "system_usermanager.php");
@@ -410,6 +410,7 @@ if (!($act == "new" || $act == "edit" || $input_errors))
require_once('classes/Form.class.php');
$form = new Form;
$form->setAction('system_authservers.php?act=edit');
+
$form->addGlobal(new Form_Input(
'userid',
null,
@@ -426,9 +427,6 @@ $section->addInput($input = new Form_Input(
$pconfig['name']
));
-if ($act == 'edit')
- $input->setReadonly();
-
$section->addInput($input = new Form_Select(
'type',
'Type',
@@ -436,9 +434,6 @@ $section->addInput($input = new Form_Select(
$auth_server_types
))->toggles();
-if ($act == 'edit')
- $input->setDisabled();
-
$form->add($section);
$section = new Form_Section('LDAP Server Settings');
$section->addClass('toggle-ldap collapse');
@@ -715,6 +710,14 @@ events.push(function(){
// On page load . .
ldap_tmplchange();
+<?php
+ if($act == 'edit') {
+?>
+ $('#type').prop("disabled", true);
+ $('#name').prop("disabled", true);
+<?php
+ }
+?>
// On click . .
$('#ldap_tmpltype').on('change', function() {
ldap_tmplchange();
OpenPOWER on IntegriCloud