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:
12
README.md
12
README.md
@@ -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]
|
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.
|
-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.
|
-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.
|
add -g switch if a Graylog Server present.
|
||||||
-cache-clear: will clear the cache of the applications template_c folder.
|
-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.
|
-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 {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 {local|staging|production}: will reset the migrations table, use only if you know what
|
||||||
-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.
|
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.
|
-ws {URL} -wp {PORT}: connect to a WebSocket at the given URL and port.
|
||||||
-h: display this help message.
|
-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.
|
-version or -v: display the version of the nibiru binary, and the current framework version.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ class TypeCheckbox extends FormAttributes implements IForm
|
|||||||
self::FORM_VALUE => '',
|
self::FORM_VALUE => '',
|
||||||
self::FORM_ATTRIBUTE_ID => '',
|
self::FORM_ATTRIBUTE_ID => '',
|
||||||
self::FORM_ATTRIBUTE_CLASS => '',
|
self::FORM_ATTRIBUTE_CLASS => '',
|
||||||
self::FORM_ATTRIBUTE_CHECKED => ''
|
self::FORM_ATTRIBUTE_CHECKED => '',
|
||||||
|
self::FORM_ATTRIBUTE_DISABLED => ''
|
||||||
);
|
);
|
||||||
|
|
||||||
public function loadElement( $attributes )
|
public function loadElement( $attributes )
|
||||||
@@ -33,7 +34,7 @@ class TypeCheckbox extends FormAttributes implements IForm
|
|||||||
*/
|
*/
|
||||||
private function _setElement( )
|
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