Develop a menu that appears after sign-up/log-in, allowing both instructors and students to select a course before accessing their respective dashboards.
Key Elements:
Instructor Course Selection:
After an instructor logs in, redirect them to the "Select a Course" menu.
Show a list of courses assigned to the instructor (pulled from the database).
Instructors cannot add or remove courses.
Once a course is selected, the instructor is redirected to their dashboard with the selected course context.
Student Course Selection:
After a student logs in, redirect them to the "Select a Course" menu.
Allow students to add or drop courses (up to a max of 6).
Display the list of courses the student is already enrolled in.
Ensure that students cannot select more than 6 courses and prevent duplicates.
Once a course is selected, the student is redirected to their dashboard with the selected course context.
Technical Details:
Use conditional rendering to differentiate between the instructor and student views.
Add logic in the controller to handle course selection and updating the user’s session with the current course.
Description:
Develop a menu that appears after sign-up/log-in, allowing both instructors and students to select a course before accessing their respective dashboards.
Key Elements:
Instructor Course Selection:
Student Course Selection:
Technical Details: