diff --git a/forms/TextField.php b/forms/TextField.php index 618b83305..5429b626c 100755 --- a/forms/TextField.php +++ b/forms/TextField.php @@ -37,4 +37,22 @@ class TextField extends FormField { } + +class TextField_Disabled extends TextField{ + function Field() { + $attributes = $attributes = array( + 'type' => 'text', + 'class' => $this->extraClass() . ' text', + 'id' => $this->id(), + 'name' => $this->Name(), + 'value' => $this->Value(), + 'tabindex' => $this->getTabIndex(), + 'maxlength' => ($this->maxLength) ? $this->maxLength : null, + 'size' => ($this->maxLength) ? min( $this->maxLength, 30 ) : null, + 'disabled' => 'disabled' + ); + + return $this->createTag('input', $attributes); + } +} ?> \ No newline at end of file