You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Viewing Profiles
As part of the cohort manager, each user should have their personal profile page that displays their details. As a user, I would like to view other users' profile pages regardless of which cohort they are in or whether they are teachers or not.
A user should be able to view their own profile by clicking their initials in the top right corner of the app and clicking the Profile option in the pop-up menu.
A user with id=12 should have their profile page at the path /profile/12
In the profile page view, the users' details should not be editable and just presented as text instead of input fields. This page should have a button with the text "Edit" that will take the user to the edit profile page.
This button should only be visible when the user visiting this profile page is ether:
As a user I should be able to edit the the details on my own profile page. If I am a student, I should not be able to edit my role or the cohort I am in, only teachers are allowed to do this. The password should only be editable if I am the owner of that profile page.
As a teacher, I need to be able to change a student into a teacher and vice-versa, or change the cohort they are in. Teachers should be able to do so by visiting the student's profile page.
A user with id=12 should have their edit profile page at the path profile/12/edit
If a student visits another student's or a teachers edit page, they should be redirected to the normal profile page for that user.
Teachers are allowed to visit any other user's profile/:id/edit page and submit updated data.
The text was updated successfully, but these errors were encountered:
Viewing Profiles
As part of the cohort manager, each user should have their personal profile page that displays their details. As a user, I would like to view other users' profile pages regardless of which cohort they are in or whether they are teachers or not.
A user should be able to view their own profile by clicking their initials in the top right corner of the app and clicking the Profile option in the pop-up menu.
A user with
id=12
should have their profile page at the path/profile/12
In the profile page view, the users' details should not be editable and just presented as text instead of input fields. This page should have a button with the text "Edit" that will take the user to the edit profile page.
This button should only be visible when the user visiting this profile page is ether:
Design
Editing profiles
As a user I should be able to edit the the details on my own profile page. If I am a student, I should not be able to edit my role or the cohort I am in, only teachers are allowed to do this. The password should only be editable if I am the owner of that profile page.
As a teacher, I need to be able to change a student into a teacher and vice-versa, or change the cohort they are in. Teachers should be able to do so by visiting the student's profile page.
A user with
id=12
should have their edit profile page at the pathprofile/12/edit
If a student visits another student's or a teachers edit page, they should be redirected to the normal profile page for that user.
Teachers are allowed to visit any other user's profile/:id/edit page and submit updated data.
The text was updated successfully, but these errors were encountered: