Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Jonathan Druart f91ed3d8bf Bug 14060: Remove readonly attributes on date inputs
In order to remove accessibility issues due to the readonly attributes
on date inputs, this patch will remove them and introduce a javascript
validation on them.

This patch is not perfect for some reason:
I didn't manage to force the user to select a valid date. One solution
would be to reopen the datepicker plugin until a valid date is inserted.
But it could be annoying for users (and for me: I did not manage to
implement this solution).
You will note that input is emptied if the date is not valid. This is a
quick and efficient solution to prevent submitting invalid date and make
Koha explodes. A proper solution would be to implement the check server
side send a friendly message to the user.

Test plan:
For all inputs, try an invalid and a valid date.
 1/ Debar a patron
 2/ On the checkout tables (circulation and moremember), add a renewal
due date (at the bottom of the tables)
 3/ On the checkout page, specify a due date
 4/ On the return page, specify a return date
 5/ On the invoice page (acquisition module), enter a shipment and
billing date
 6/ On the invoice search page (invoices.pl) use filters shipment and
billing dates
 7/ On the offline circ page, specify a due date
 8/ On the edit patron page (memberentry), add a debarment
 9/ On the reserve page (reserve/request.pl), use the date inputs to
suspend until a defined date
10/ Edit patrons in a batch (tools/modborrowers.pl) and use the
registration and expiry date inputs

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2016-09-08 12:04:19 +00:00
..
bookcount.tt Bug 15927 - Remove use of <tr class="highlight"> for alternating row colors 2016-03-02 22:07:13 +00:00
branchoverdues.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
branchtransfers.tt Bug 17022: Fix XSS in circ/branchtransfers.pl 2016-08-04 19:19:23 +00:00
circulation-home.tt Bug 16225 - Extra closing quote in circulation home page template 2016-04-22 23:02:02 +00:00
circulation.tt Bug 14060: Remove readonly attributes on date inputs 2016-09-08 12:04:19 +00:00
circulation_batch_checkouts.tt Bug 6906: Add the warning message to the batch checkout 2016-07-08 13:40:28 +00:00
offline-mf.tt Bug 16242 - Move staff client JavaScript out of language directory 2016-04-29 14:32:42 +00:00
offline.tt Bug 14060: Remove readonly attributes on date inputs 2016-09-08 12:04:19 +00:00
on-site_checkouts.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
overdue.tt Bug 16531: Circ overdue report is showing an empty table if no overdues 2016-07-15 18:04:57 +00:00
pendingreserves.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
printslip.tt Bug 16218: printfeercpt.tt (and others) does not include jQuery 2016-04-29 14:14:54 +00:00
renew.tt Bug 15821: Use Font Awesome icons in confirmation dialogs - Circulation 2016-03-02 03:52:01 +00:00
reserveratios.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
returns.tt Bug 14060: Remove readonly attributes on date inputs 2016-09-08 12:04:19 +00:00
selectbranchprinter.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
transfer-slip.tt Revert bug 13618 - "Prevent XSS in the Staff Client and the OPAC" due to performance issues 2016-02-11 19:39:53 +00:00
transferstoreceive.tt Bug 16774: Format date on 'Transfers to receive' page to dateformat system preference 2016-07-08 13:04:36 +00:00
view_holdsqueue.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00
waitingreserves.tt Bug 16241 - Move staff client CSS out of language directory 2016-04-29 13:54:37 +00:00