gabrielshufelt / Real-Ratings-SOEN-341_Project_F24

0 stars 1 forks source link

Implement Leave Team and Join Team Functionality (Students) #64

Open Luqman1008 opened 2 weeks ago

Luqman1008 commented 2 weeks ago

Description:

Develop the logic to allow students to leave their current team or join an existing team.

Key Elements:

  1. Leave Team:

    • Add a "Leave Team" button that allows students to leave their current team.
    • Ensure proper removal of the student from the team in the database.
    • Redirect students to the team list with the "Create a New Team" button available after leaving.
  2. Join Team:

    • Display a list of all available teams with "Join Team" buttons.
    • Upon clicking "Join Team", the student should be associated with that team in the database.
  3. Controller Logic:

    • Implement actions in the controller to handle leaving a team and joining a team.
    • Add error handling for cases where a student tries to join a full or restricted team.
  4. Routing:

    • Ensure routes are set up to handle leaving and joining teams: