diff --git a/views/firstLogin/sections/birthdate.hbs b/views/firstLogin/sections/birthdate.hbs index e21f33f14f..9871dd064a 100644 --- a/views/firstLogin/sections/birthdate.hbs +++ b/views/firstLogin/sections/birthdate.hbs @@ -3,12 +3,16 @@

{{$t "firstLogin.birthdate.text.weNeedYourDateOfBirth" }}

- {{> "lib/forms/form-date-input" - label=($t "global.label.dateOfBirth") - id="studentBirthdate" - dataMinDate=(datePickerTodayMinus 100 0 0) - dataMaxDate=(datePickerTodayMinus 4 0 0) - }} + +
diff --git a/views/firstLogin/sections/birthdate_U14.hbs b/views/firstLogin/sections/birthdate_U14.hbs index 8afdcfe089..a7e1423a67 100644 --- a/views/firstLogin/sections/birthdate_U14.hbs +++ b/views/firstLogin/sections/birthdate_U14.hbs @@ -3,12 +3,18 @@

{{$t "firstLogin.birthdate.text.weNeedYourDateOfBirth" }}

- {{> "lib/forms/form-date-input" - label=($t "global.label.dateOfBirth") - id="studentBirthdate" - dataMinDate=(datePickerTodayMinus 14 0 -1) - dataMaxDate=(datePickerTodayMinus 4 0 0) - }} + +
diff --git a/views/firstLogin/sections/birthdate_UE14.hbs b/views/firstLogin/sections/birthdate_UE14.hbs index d318f969ea..263671ec62 100644 --- a/views/firstLogin/sections/birthdate_UE14.hbs +++ b/views/firstLogin/sections/birthdate_UE14.hbs @@ -3,13 +3,17 @@

{{$t "firstLogin.birthdate.text.weNeedYourDateOfBirth" }}

- {{> "lib/forms/form-date-input" - label=($t "global.label.dateOfBirth") - id="studentBirthdate" - value=(datePickerTodayMinus CONSENT_WITHOUT_PARENTS_MIN_AGE_YEARS 0 0) - dataMinDate=(datePickerTodayMinus CONSENT_WITHOUT_PARENTS_MIN_AGE_YEARS 0 -1) - dataMaxDate=(datePickerTodayMinus 14 0 0) - }} + +
diff --git a/views/firstLogin/sections/birthdate_UE16.hbs b/views/firstLogin/sections/birthdate_UE16.hbs index ce4203758f..d53d349dc1 100644 --- a/views/firstLogin/sections/birthdate_UE16.hbs +++ b/views/firstLogin/sections/birthdate_UE16.hbs @@ -3,12 +3,16 @@

{{$t "firstLogin.birthdate.text.weNeedYourDateOfBirth" }}

- {{> "lib/forms/form-date-input" - label=($t "global.label.dateOfBirth") - id="studentBirthdate" - dataMinDate=(datePickerTodayMinus 100 0 0) - dataMaxDate=(datePickerTodayMinus CONSENT_WITHOUT_PARENTS_MIN_AGE_YEARS 0 0) - }} + +
diff --git a/views/registration/registration-parent.hbs b/views/registration/registration-parent.hbs index 484f92f84c..f14e07a24b 100644 --- a/views/registration/registration-parent.hbs +++ b/views/registration/registration-parent.hbs @@ -42,15 +42,18 @@
- {{> "lib/forms/form-date-input" - label=($t "registration._registration.global.label.studentsDateOfBirth") - id="birthDate" - value=user.birthday - required=true - readonly=(isset user.birthday) - dataMinDate=(datePickerTodayMinus CONSENT_WITHOUT_PARENTS_MIN_AGE_YEARS 0 -1) - dataMaxDate=(datePickerTodayMinus 4 0 0) - }} + +
diff --git a/views/registration/registration-student.hbs b/views/registration/registration-student.hbs index 49256b9f7b..ff4bc38009 100644 --- a/views/registration/registration-student.hbs +++ b/views/registration/registration-student.hbs @@ -38,15 +38,18 @@
- {{> "lib/forms/form-date-input" - label=($t "registration._registration.global.label.studentsDateOfBirth") - id="birthDate" - value=user.birthday - required=true - readonly=(isset user.birthday) - dataMinDate=(datePickerTodayMinus 100 0 0) - dataMaxDate=(datePickerTodayMinus 4 0 0) - }} + +