Add 'disabled' option to typecheckbox and update README
Extended the typecheckbox element to include a 'disabled' attribute. Updated the README to provide details on new command-line switches for creating and deleting CMS pages. In preparation of the upcoming AI/CMS module.
This commit is contained in:
@@ -16,7 +16,8 @@ class TypeCheckbox extends FormAttributes implements IForm
|
||||
self::FORM_VALUE => '',
|
||||
self::FORM_ATTRIBUTE_ID => '',
|
||||
self::FORM_ATTRIBUTE_CLASS => '',
|
||||
self::FORM_ATTRIBUTE_CHECKED => ''
|
||||
self::FORM_ATTRIBUTE_CHECKED => '',
|
||||
self::FORM_ATTRIBUTE_DISABLED => ''
|
||||
);
|
||||
|
||||
public function loadElement( $attributes )
|
||||
@@ -33,7 +34,7 @@ class TypeCheckbox extends FormAttributes implements IForm
|
||||
*/
|
||||
private function _setElement( )
|
||||
{
|
||||
$this->_element = '<input type="checkbox" name="NAME" value="VALUE" ID CLASS CHECKED>' . ' VALUE' . "\n";
|
||||
$this->_element = '<input type="checkbox" name="NAME" value="VALUE" ID CLASS CHECKED DISABLED>' . ' VALUE' . "\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user