]> git.koha-community.org Git - koha.git/commit
Bug 30718: Use flatpickr's altInput
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Jul 2022 14:14:38 +0000 (16:14 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 19 Aug 2022 11:26:31 +0000 (08:26 -0300)
commit48bf9b1d91dbbc336f859ac1a83d7d25b0e6a3c1
treed4025a649cdd134031582dccb3fb65894e6f6780
parentb02b66acf5ddac1af00215fbcc1d842777b67c3b
Bug 30718: Use flatpickr's altInput

The idea rely on the KohaDates TT plugin for the date formatting. We
should not have any output_pref calls in pl or pm (there are some
exceptions, for ILSDI for instance).

Also flatpickr will deal with the places where dates are inputed. We
will pass the raw SQL value (what we call 'iso' in Koha::DateUtils), and
the controller will receive the same value, no need to additional
conversion.
Note that DBIC has the capability to auto-deflate DateTime objects,
which makes things way easier. We can either pass the value we receive
from the controller, or pass a DT object to our methods.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
113 files changed:
C4/Acquisition.pm
C4/Barcodes/annual.pm
C4/Barcodes/hbyymmincr.pm
C4/Circulation.pm
C4/ILSDI/Services.pm
C4/Items.pm
C4/Letters.pm
C4/Members.pm
C4/Overdues.pm
C4/Reports/Guided.pm
C4/Reserves.pm
C4/Search/History.pm
C4/Serials.pm
Koha/Hold.pm
Koha/Item.pm
Koha/Patrons/Import.pm
Koha/REST/V1/Clubs/Holds.pm
Koha/REST/V1/Holds.pm
Koha/Report.pm
acqui/duplicate_orders.pl
acqui/histsearch.pl
acqui/invoice.pl
acqui/invoices.pl
acqui/lateorders.pl
acqui/orderreceive.pl
acqui/parcels.pl
admin/aqbudgetperiods.pl
admin/aqcontract.pl
admin/categories.pl
admin/smart-rules.pl
cataloguing/additem.pl
cataloguing/value_builder/barcode.pl
cataloguing/value_builder/barcode_manual.pl
cataloguing/value_builder/dateaccessioned.pl
circ/branchoverdues.pl
circ/circulation.pl
circ/overdue.pl
circ/renew.pl
circ/reserveratios.pl
circ/returns.pl
circ/transferstoreceive.pl
circ/waitingreserves.pl
clubs/clubs-add-modify.pl
installer/onboarding.pl
koha-tmpl/intranet-tmpl/prog/en/includes/calendar.inc
koha-tmpl/intranet-tmpl/prog/en/includes/filter-orders.inc
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoice.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgetperiods.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqcontract.tt
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation_batch_checkouts.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/pendingreserves.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/renew.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/reserveratios.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt
koha-tmpl/intranet-tmpl/prog/en/modules/clubs/clubs-add-modify.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/serials-search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-history.tt
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tags/review.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tt
koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt
koha-tmpl/intranet-tmpl/prog/js/members.js
labels/label-item-search.pl
members/housebound.pl
members/memberentry.pl
misc/cronjobs/fines.pl
misc/cronjobs/serialsUpdate.pl
misc/cronjobs/staticfines.pl
opac/opac-memberentry.pl
opac/opac-reserve.pl
opac/opac-suggestions.pl
pos/register.pl
reports/acquisitions_stats.pl
reports/bor_issues_top.pl
reports/borrowers_out.pl
reports/borrowers_stats.pl
reports/cash_register_stats.pl
reports/cat_issues_top.pl
reports/dictionary.pl
reports/guided_reports.pl
reports/issues_avg_stats.pl
reports/issues_stats.pl
reports/orders_by_fund.pl
reports/reserves_stats.pl
reserve/modrequest.pl
reserve/request.pl
serials/serials-edit.pl
serials/serials-search.pl
serials/showpredictionpattern.pl
suggestion/suggestion.pl
t/db_dependent/Reserves.t
t/db_dependent/Serials.t
tags/review.pl
tools/additional-contents.pl
tools/batchMod.pl
tools/batch_extend_due_dates.pl
tools/cleanborrowers.pl
tools/holidays.pl
tools/inventory.pl
tools/scheduler.pl