A project serving Community Education Partnerships - https://www.cep.ngo/ . This Rails application presents an admin interface for CEP to manage their volunteers and students. And provides a GraphQL backend for https://github.com/rubyforgood/inkind-volunteer .
As an admin, I would like to deactivate and activate students.
Criteria for Completion
[ ] From the Students#index, add an action to "Deactivate" if the student is active. Upon clicking the action, pop a confirmation modal before deactivating the student.
[ ] When a student deactivates, update their deactivated_at, change their status to inactive, and add a column for deactivator_id that references the current user who executed the action (and update it).
[ ] From the Students#index, add an action to "Activate" if the student is inactive. Upon clicking the action, pop a confirmation modal before activating the student.
[ ] When a student activates, change their status to active.
Summary
As an admin, I would like to deactivate and activate students.
Criteria for Completion
deactivated_at
, change theirstatus
to inactive, and add a column fordeactivator_id
that references the current user who executed the action (and update it).status
to active.