Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a teacher/admin to edit a lesson #28

Open
amellie opened this issue Jul 12, 2022 · 0 comments
Open

Allow a teacher/admin to edit a lesson #28

amellie opened this issue Jul 12, 2022 · 0 comments

Comments

@amellie
Copy link
Collaborator

amellie commented Jul 12, 2022

Dependency

Depends on #27

Story

As a Teacher or an Admin
I Want to edit an existing lesson
So That I can keep the lessons up to date

Acceptance Criteria

  • The edit capability should only be accessible by a teacher/admin
  • The edit page should be similar to the create lesson page (done in Allow a teacher or admin to create a new lesson #16), which allows users to update the module that the lesson is associated with, the lesson name, lesson description, and replace the lesson document
  • Ensure that the validation is the same as what has been done in the create lesson page
  • The edit page can be accessed from the lesson list page created in Allow a teacher/admin to see the list of lessons with controls #27. You need to modify the lesson list page so that when a user click the Edit button, the user will be redirected to this edit page
  • Upon submission of the edit page, the user should be redirected to the lesson list page (based on the module ID selected/edited) with a message "Lesson has been updated" (if successful) or show an error message if unsuccessful.
@amellie amellie changed the title Allow a teacher/admin to edit or delete a lesson Allow a teacher/admin to edit a lesson Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant