The script itself can be downloaded from here: [url removed, login to view]
Installation instructions: [url removed, login to view]
These are the main modifications. If we are satisfied with the work, a lot of other modifications will be needed in the near future.
Right now there are projects and under projects there are todos. We need a sub project between them. So you add a project. Then you add subprojects under the project and then you add todos under these subprojects.
"Add a subproject" link should instantly create a new subproject named "Untitled subproject"
Subproject's name should be editable when you click on it (like project name)
Delete subproject should delete all the actions under it aswell.
Right box where you add actions should have a dropdown menu of subprojects to choose from.
When you don't choose a subproject, it should go under default subproject called "General actions - no subproject"
Right now projects have actions. And actions have statuses. When you create an action, it is automatically incomplete action. When you press a +1 or +7 button it becomes deferred action. And if you tick the box in front of the action it becomes done action.
So right now:
project has_many actions
action belongs_to project
project has_many subprojects
subproject belongs_to project
subproject has many actions
action belongs_to subproject
maybe action needs to be linked to project aswell to not break the program.
USER MANAGEMENT CHANGE:
Right now there are two types of users: admins and regular users. Both can have their projects and todos etc. but only admin can create other users.
• I want it to be so that only regular users would have projects and todos etc, admins would manage users only (later there will be additional admin functions).
• I also want to have public registration form for regular users. There is something existing but it needs to be rewritten.
• I want regular users to be able to create subusers. Subusers are users who have username and password and they can log in into the system, but they don't have their own projects and actions. Subusers are created by the mainuser (eg added in users section). They see only the projects of mainuser. Then each project should have a place where mainuser can add access privileges to these subusers. So when subusers log in, they see only the projects that main user has granted access for them. Mainuser is the owner of the whole account (for example a company). Subusers are just users who use this account (eg. employees of the company).