gabrielshufelt / Real-Ratings-SOEN-341_Project_F24

0 stars 1 forks source link

Implement "Select a Course" Menu for Instructors and Students #65

Open Luqman1008 opened 2 weeks ago

Luqman1008 commented 2 weeks ago

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:

  1. 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.
  2. 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.
  3. 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.