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
We want to create the Right Hand Side of the parent model. The parent model can flip through students, so we will have to dynamically update the model as soon as the current student is changed
First, we need to create a route for
/users/[id]/classes.
This should return an object of the form Class (should be defined already). If you think we can get a better The database query should also be defined (since there are a ton of moving parts). Worse case, you will have to slap a WHERE user_id = $1 in the end.
Finally, we can use that api call above to generate the data on the rhs. We do not need to populate the attendance. We just need a dropdown that will display the time the class takes and a link to view the class (which links to the class page with the attendance/roster etc.). By the time you get to this, Anvitaa should have the student/parent view of the classpage done, and you should be good to go :).
We want to create the Right Hand Side of the parent model. The parent model can flip through students, so we will have to dynamically update the model as soon as the current student is changed
First, we need to create a route for
/users/[id]/classes.
This should return an object of the form Class (should be defined already). If you think we can get a better The database query should also be defined (since there are a ton of moving parts). Worse case, you will have to slap a WHERE user_id = $1 in the end.
Finally, we can use that api call above to generate the data on the rhs. We do not need to populate the attendance. We just need a dropdown that will display the time the class takes and a link to view the class (which links to the class page with the attendance/roster etc.). By the time you get to this, Anvitaa should have the student/parent view of the classpage done, and you should be good to go :).
Maybe take a look at this: https://mui.com/material-ui/react-accordion/ for the dropdown. If its too difficult, dont worry about. I just thought it looked clean.
The text was updated successfully, but these errors were encountered: