Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent Attendance Display #130

Open
Anshul-Birla opened this issue Jan 26, 2023 · 0 comments
Open

Parent Attendance Display #130

Anshul-Birla opened this issue Jan 26, 2023 · 0 comments

Comments

@Anshul-Birla
Copy link
Collaborator

Anshul-Birla commented Jan 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant