devinshende / challenge-tracker

Website to track challenge times for obstacles at nwninjapark in springfield, OR
https://ninjapark-tracker.herokuapp.com
1 stars 0 forks source link

change age in signup to be birthday READ COMMENT #24

Closed devinshende closed 5 years ago

devinshende commented 5 years ago

this is so the user doesn't have to edit their age manually when they turn one year older. The computer does it for the.

devinshende commented 5 years ago

In progress. So far all I've done is added the frontend form for the birthday. I still need to make it required, calculate age, and handle all of the problems with users that will come when some have bday and others have age. we'l have to wipe the users and add new ones or edit the existing ones. We also need to figure out how to do it with the database

devinshende commented 5 years ago

all that's left is to figure out how to make birthday a required field

devinshende commented 5 years ago

bday must be required before closing this

devinshende commented 5 years ago

Still no luck with making it required. I tried just changing it to a flash message but the return render_template isn't working, but if you use the back arrow the flash message still works.

devinshende commented 5 years ago

Done! even the gender radio button stays and so does the birth month, day, and year if they only input one or two of them. I did it with a flash message cause I couldn't figure out how to make it required.