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

@@ -20,17 +20,23 @@ MMVC in the **nibiru framework** stands for Modular Model-View-Controller. Modul
Usage: ./nibiru [-m <module_name>] [-c <controller_name>] [-h]
-m {name}: create a new module with the given name.
-m {name}: create a new module with the given name. Add -g switch if a Graylog Server present.
-c {name}: create a new controller with the given name.
-p {name} -m {name}: create a new plugin with the given name in the given name for the module.
add -g switch if a Graylog Server present.
-cache-clear: will clear the cache of the applications template_c folder.
-s: check framework folders and permissions, and set them if they are not present.
-mi {local|staging|production}: run migration files from application/settings/config/database/.
-mi-reset {local|staging|production}: will reset the migrations table, use only if you know what you are doing.
-mi-reset-file {filename} {local|staging|production}: will reset the migration entry for a filename e.g. mytable.sql, use only if you know what you are doing.
-mi-reset {local|staging|production}: will reset the migrations table, use only if you know what
you are doing.
-mi-reset-file {filename} {local|staging|production}: will reset the migration entry for a filename
e.g. mytable.sql, use only if you know what
you are doing.
-ws {URL} -wp {PORT}: connect to a WebSocket at the given URL and port.
-h: display this help message.
-new-cms-page {name} (only available with the CMS module): will create a new page with connection
to an existing template.
-delete-cms-page {name} (only available with the CMS module): will delete a CMS page with the given name.
-version or -v: display the version of the nibiru binary, and the current framework version.
```

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

BIN
nibiru Executable file → Normal file

Binary file not shown.