The new Phprojekt6 has, like the previous versions, the Module Designer, for the admin to add / modify / delete system modules.
The cool stuff in Phprojekt6 is that the admin creates and modifies the forms using a drag and drop system.
That means, one column in the left with all the possible type of fields, and many columns in the right (one per tab),
where the fields will be dropped. After each drop, a tiny form will appear on screen for customizing the new field with values like:
- Name in the table
- Length in the table
- Type of field in the table
- Label to show in phprojekt6
- Default value
- Whether the field is required
- ...and more
The admin can also drag and drop the fields into the right column to select the correct order in which they will be displayed.
To delete the field drag and drop it back into the left column.
The idea is to give the form the same appearance that will be seen by the user later.
After the Submit, some things happen depending on the action done:
- Add a module
- The table and the fields are created.
- The databasemanager will contain all the new types of fields to make the forms.
- All the default files of PHP and JS will be copied to the new module folder (then a developer can change them).
- Modify a module
- The table is altered by adding the new fields or doing the changes, and deleting all the old fields.
- The databasemanager will contain all the new values of the fields, to make the forms
- Delete a module
- The table is deleted.
- The databasemanager is updated.
- All the module files and the folder, are deleted.
So, for normal users, the creation, modification and deletion of modules is really easy, basically using the mouse.