Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 79960f3c65 Bug 29278: Fix selector of hint used to show age
This patch modifies the patron entry form to correct a problem with the
write_age() function introduced by the switch to Flatpickr on this page
(Bug 28937).

Rather than selecting the element based on the sequence of elements on
the page, we should add an ID for direct selection.

To test, apply the patch and go to Patrons.

- 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.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-25 13:56:35 +02:00
..
acqui Bug 27287: Make note fields from orders history searchable 2021-10-21 12:24:04 +02:00
admin Bug 29052: Make consistent use of spans and div with hint class 2021-10-21 12:24:04 +02:00
authorities
basket
batch Bug 29244: Add dialog class where missing in print-notices.tt 2021-10-21 12:24:04 +02:00
catalogue Bug 28180: Fix collision with existing verify_images 2021-10-21 12:24:04 +02:00
cataloguing Bug 28445: Use the task queue for the batch delete and update items tool 2021-10-18 11:28:40 +02:00
circ Bug 28084: Standardize: Cardnumber, Card number, Card 2021-10-21 12:24:04 +02:00
clubs Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
common
course_reserves
errors
ill Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
installer Bug 19185: Ease elements selection 2021-10-25 11:27:40 +02:00
labels Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
mana
members Bug 29278: Fix selector of hint used to show age 2021-10-25 13:56:35 +02:00
offline_circ
onboarding
patron_lists Bug 16446: (follow-up) Fix translation and adjust radio buttons 2021-10-21 12:24:04 +02:00
patroncards
plugins
pos Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
reports Bug 29225: Don't hide subgroup filter on pag load 2021-10-21 10:21:50 +02:00
reserve Bug 29270: Remove flatpickr instantiation from request.tt 2021-10-25 13:56:32 +02:00
reviews
rotating_collections
serials Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
services
suggestion
tags Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
test
tools Bug 29231: Add missing Flatpickr to inventory page 2021-10-21 12:24:04 +02:00
virtualshelves
about.tt Bug 29209: Credits for Saxion in Dutch translation 2021-10-15 11:34:26 +02:00
auth.tt
intranet-main.tt Bug 29020: Add link on the mainpage for users without admin access 2021-10-19 09:29:09 +02:00