mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@74490 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
2889ab115a
commit
15c4b90132
@ -117,6 +117,8 @@ class ConfirmedPasswordField extends FormField {
|
||||
}
|
||||
|
||||
foreach($this->children as $field) {
|
||||
$field->setDisabled($this->isDisabled());
|
||||
$field->setReadonly($this->isReadonly());
|
||||
$content .= $field->FieldHolder();
|
||||
}
|
||||
|
||||
|
@ -25,13 +25,15 @@ class PasswordField extends FormField {
|
||||
|
||||
|
||||
function Field() {
|
||||
$disabled = $this->isDisabled()?"disabled=\"disabled\"":"";
|
||||
$readonly = $this->isReadonly()?"readonly=\"readonly\"":"";
|
||||
if($this->maxLength) {
|
||||
return "<input class=\"text\" type=\"password\" id=\"" . $this->id() .
|
||||
"\" name=\"{$this->name}\" value=\"" . $this->attrValue() .
|
||||
"\" maxlength=\"$this->maxLength\" size=\"$this->maxLength\"/>";
|
||||
"\" maxlength=\"$this->maxLength\" size=\"$this->maxLength\" $disabled $readonly />";
|
||||
} else {
|
||||
return "<input class=\"text\" type=\"password\" id=\"" . $this->id() .
|
||||
"\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" />";
|
||||
"\" name=\"{$this->name}\" value=\"" . $this->attrValue() . "\" $disabled $readonly />";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user