@@ -, +, @@ - Locate a patron record which has a date of birth saved. - When you open that patron for editing, you should see their age displayed below the date of birth input field, e.g. "Age: 23 years 9 months." - Changing the date in the date of birth field should update the age string correctly. - Go to Patrons -> New patron. - The date of birth field should have a hint showing the required date format, e.g. "(DD.MM.YYYY)". - When you select a date of birth using the Flatpickr calendar the age string should be updated correctly. --- .../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- koha-tmpl/intranet-tmpl/prog/js/members.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -354,7 +354,7 @@ legend:hover { [% IF ( ERROR_dateofbirth ) %] (Error) [% END %] -
[% INCLUDE 'date-format.inc' %]
+
[% INCLUDE 'date-format.inc' %]
[% END # /UNLESS nodateofbirth %] [% UNLESS noinitials %] --- a/koha-tmpl/intranet-tmpl/prog/js/members.js +++ a/koha-tmpl/intranet-tmpl/prog/js/members.js @@ -148,7 +148,7 @@ function CalculateAge(dateofbirth) { } function write_age() { - var hint = $("#dateofbirth").siblings(".hint").first(); + var hint = $("#dateofbirth_hint"); hint.html(dateformat); var age = CalculateAge(document.form.dateofbirth.value); --