Angular/graphql developer: add deleting classes function to an existing app.
Budget: $30 – $100 USD
https://docs.google.com/document/d/1F9jiGFCbJ2eV2-D52snUI1htrchhohRXwT49VycANec/edit?usp=sharing
all details are in this link.
1.when click on the “Delete Class” Menu, Display a modal , in this modal it lists all classes in the same school as the current user (teacher). display the following fields:
Class Name
No. Of Teachers(class.teachers)
No. Of Students (class.members)
Created By (display the user name, not ID) ,
Created At
Updated At
display a “trash bin” icon if both no. of teachers and students are 0.
When the user clicks on the trash bin, create a modal for confirmation (Are you sure you want to remove this class and all its associated class level messages?), and once confirmed:
It should delete the class and messages that are associated with this class (messages.class) if it meets the following criteria:
it has no teachers (error message: This class has associated teachers, unable to delete this class)
it has no students (members) (error message: This class has associated students, unable to delete this class)
it should be in the same school as the current user,
it should NOT be under any activities (activity.classes) (error message: This class is participated in activity activity_name, unable to delete this class)
it should NOT be associated with any groups (error message: This class has associated groups, unable to delete this class).
Otherwise display the error messages as shown above.
all details are in this link.
1.when click on the “Delete Class” Menu, Display a modal , in this modal it lists all classes in the same school as the current user (teacher). display the following fields:
Class Name
No. Of Teachers(class.teachers)
No. Of Students (class.members)
Created By (display the user name, not ID) ,
Created At
Updated At
display a “trash bin” icon if both no. of teachers and students are 0.
When the user clicks on the trash bin, create a modal for confirmation (Are you sure you want to remove this class and all its associated class level messages?), and once confirmed:
It should delete the class and messages that are associated with this class (messages.class) if it meets the following criteria:
it has no teachers (error message: This class has associated teachers, unable to delete this class)
it has no students (members) (error message: This class has associated students, unable to delete this class)
it should be in the same school as the current user,
it should NOT be under any activities (activity.classes) (error message: This class is participated in activity activity_name, unable to delete this class)
it should NOT be associated with any groups (error message: This class has associated groups, unable to delete this class).
Otherwise display the error messages as shown above.