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:
Stephan Kasdorf
2024-10-25 12:55:05 +02:00
parent 267cfcad4f
commit f1ebcef60f
3 changed files with 12 additions and 5 deletions

View File

@@ -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";
}