wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.12k stars 580 forks source link

Add date of birth to profile table #332

Closed rolandgeider closed 4 years ago

rolandgeider commented 8 years ago

This is mostly useful for gyms, the user's date of birth should be added to the profile table. The main problem is that there is already a field "age", which is simply an integer and is populated from the calories calculator. Users should be able to edit the exact date of birth, but should also be able to just enter the years. There should be some automatism so that if a new date is entered, the age field is automatically updated. I'm not sure what would be a correct behaviour in the opposite case, if the age in entered but contradicts the date, perhaps just ignore it? There also needs to be validation, e.g. allowing values between 10 and 99 years.

cherya commented 7 years ago

@rolandgeider Where it should be? Is it pre_save signal?

rolandgeider commented 7 years ago

Yeah, that would be the place

dtopal commented 7 years ago

@rolandgeider Where do you want users to enter their date of birth?

rolandgeider commented 7 years ago

@dtopal I'd say in the profile page and for gym administrators when adding members

ehmadzubair commented 6 years ago

@cherya Are you planning to take on this issue or should i?

rolandgeider commented 6 years ago

Uh, this is actually already done, I'll close the ticket when I'm home

Am 19.10.2017 um 12:48 schrieb Ehmad Zubair:

@cherya https://github.com/cherya Are you planning to take on this issue or should i?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/wger-project/wger/issues/332#issuecomment-337871581, or mute the thread https://github.com/notifications/unsubscribe-auth/ACLNGd3Jp3p96bWipXZiBnnfarPiPMpcks5stykagaJpZM4KDPHE.

JHerseth commented 6 years ago

@rolandgeider You forgot to close it ;)

abskrj commented 5 years ago

You forgot to close it. I spent around half an hour to add that feature.