Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
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
..
automatic_item_modification_by_age.tt
batch_delete_records.tt
batch_record_modification.tt Bug 16538: Improve the style of progress bars 2016-07-15 18:06:08 +00:00
batchMod-del.tt Bug 16538: Improve the style of progress bars 2016-07-15 18:06:08 +00:00
batchMod-edit.tt Bug 13501: Move "Required" and checkbox after input/select 2016-09-02 16:25:04 +00:00
batchMod.tt
cleanborrowers.tt Bug 15023: Allow patron anonymize/bulk delete tool to be limited by branch 2016-08-24 11:37:02 +00:00
csv-profiles.tt Bug 15451: Better error handling 2016-07-22 17:18:37 +00:00
export.tt
holidays.tt Bug 16602 - Remove the use of "onclick" from several templates 2016-06-24 13:56:23 +00:00
import_borrowers.tt Bug 17116: Fix CSRF in import_borrowers.pl 2016-09-02 13:47:02 +00:00
inventory.tt
koha-news.tt
letter.tt
manage-marc-import.tt Bug 16538: Improve the style of progress bars 2016-07-15 18:06:08 +00:00
marc_modification_templates.tt Bug 16148 [Follow-up] - Use Font Awesome for arrows instead of images 2016-06-17 16:11:44 +00:00
modborrowers.tt Bug 14060: Remove readonly attributes on date inputs 2016-09-08 12:04:19 +00:00
overduerules.tt Bug 14612 - Overdue notice triggers should show branchname instead of branchcode 2016-09-02 15:50:01 +00:00
picture-upload.tt
quotes-upload.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
quotes.tt Bug 16513 - Improvements and fixes for quote upload process 2016-06-24 13:47:34 +00:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 10407: Add marcxml import (follow-up) 2016-09-02 16:00:13 +00:00
tools-home.tt
upload-images.tt Bug 16538: Improve the style of progress bars 2016-07-15 18:06:08 +00:00
upload.tt Bug 16727: Clarify upload category note 2016-08-04 21:29:51 +00:00
viewlog.tt Bug 14642: Add logging for Holds 2016-08-17 18:43:13 +00:00