Closed gardan closed 9 years ago
A warning message saying what? what should happen to the training, and the lessons?
As we are on the subject, what should happen in general, because deleting a trainer from the table or just removing the trainer role should do the same thing. The same question applies.
In Settings,we can have users with all kind of roles. Deleting a role like trainer for a user from Settings should work the same as deleting any other self made role like Sales for example. When deleting the role trainer the user should not be deleted. When deleting the trainer from the Trainers table, automatically its subject and the corresponding user should be deleted. The warrning message when trying to delete the role trainer from Settings for a trainer that has trainings already should say"This trainer has been planned for trainings. Are you sure you want to delete the trainer role for this user?"
For a user all roles should work the same. The role trainer should be possible to be removed from a user. In case the user has already trainings planned, a Warring message should be given but the action should be performed.