app/forms/UserSettings.php: Adding disabled attribute to readonly inputs.
This commit is contained in:
parent
10956443e6
commit
a73f9501f3
1 changed files with 2 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ class UserSettings extends FormBase
|
||||||
$id = new Text('id', array(
|
$id = new Text('id', array(
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'readonly' => '',
|
'readonly' => '',
|
||||||
|
'disabled' => 'disabled',
|
||||||
));
|
));
|
||||||
$id->addValidator(new IdenticalValidator([
|
$id->addValidator(new IdenticalValidator([
|
||||||
'accepted' => $this->getEntity()->getId(),
|
'accepted' => $this->getEntity()->getId(),
|
||||||
|
|
@ -91,6 +92,7 @@ class UserSettings extends FormBase
|
||||||
'class' => 'form-control',
|
'class' => 'form-control',
|
||||||
'placeholder' => 'Email',
|
'placeholder' => 'Email',
|
||||||
'readonly' => '',
|
'readonly' => '',
|
||||||
|
'disabled' => 'disabled',
|
||||||
));
|
));
|
||||||
|
|
||||||
$email->addValidator(new IdenticalValidator([
|
$email->addValidator(new IdenticalValidator([
|
||||||
|
|
|
||||||
Reference in a new issue