-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ticket: Hooking up AddSenior #49
Labels
ticket
Weekly developer ticket
Comments
sgilfeather
changed the title
Ticket: Hooking up AddSenior
Ticket: Hooking up AddStudent and AddSenior
Apr 5, 2023
sgilfeather
changed the title
Ticket: Hooking up AddStudent and AddSenior
Ticket: Hooking up AddStudent
Apr 5, 2023
sgilfeather
changed the title
Ticket: Hooking up AddStudent
Ticket: Hooking up AddStudent and AddSenior
Apr 5, 2023
sgilfeather
changed the title
Ticket: Hooking up AddStudent and AddSenior
Ticket: Hooking up AddSenior
Apr 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🎯 Due April 12th, 2023
Taarika Bala, Siara Small, Alex Lee, Alyssa Williams
Your task for this week and a half is to add functionality to the
AddSenior
page, so that you can generate a new model and store it on submission of the form!Specifically, you'll be writing the
handleSubmit
functions specified inadd-senior.tsx
. Don't worry about theevent
parameter passed in; you'll be using the properties inseniorData
to construct a new model.User
models.add-senior.tsx
has a dropdown of potential student names; so, replace thedropData
parameter in the<AddProfile>
with these names!Senior
model. You'll populate fields likename
andlocation
with the data passed into thehandleSubmit()
function. Other fields are more specific:StudentIDs
andStudents
will describe all associatedUser
s. A newSenior
has no files. Furthermore, on creation of a new senior, you'll want to give them a unique folder in Google Drive...file.data.id
value: this is what you'll store in theSenior
model'sfolder
field, so thatSenior
's files can be retrieved later.Finally, create and push your new model. You'll be using your function written in
src/pages/api/senior/add.ts
. Check out thehandleSubmit()
code snippet below from refine.dev on how to use your routes.We anticipate that the Google Drive part will be a little trickier– reach out to me or Michael if you have any questions.
The text was updated successfully, but these errors were encountered: