Koha/koha-tmpl/intranet-tmpl/prog/js
Jonathan Druart ae3d6f1876
Bug 33684: Make mandatory date fields required when editing a patron
Date fields in BorrowerMandatoryField are not required by the validation
form when a new patron is added or modified.

This is because the 'required' prop does not exist on the input element
when the flatpickr instance is created.
We should either add it in the DOM directly (tt), but it will require to
do it "manually" for each date fields, or add it when we add it to the
inputs. This patch implements the second option.

Test plan:
1. Add "dateofbirth" to syspref BorrowerMandatoryField.
2. Add patron and leave date of birth input field empty.
3. Save.
=> Form is not submitted and you are asked to fill in a date of birth

Signed-off-by: Emmi Takkinen <emmi.takkinen@koha-suomi.fi>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

https://bugs.koha-community.org/show_bug.cgi?id=33648
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-10 15:26:27 -03:00
..
modals Bug 31028: Add display to details page 2023-03-06 11:23:17 -03:00
pages Bug 33597: Fix deleting cookie for holdfor(club) 2023-05-05 09:13:30 -03:00
vue Bug 33064: Add a licenses option to the searchbar 2023-05-10 15:26:21 -03:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js Bug 32293: Fix terminology in warning when creating orders from staged file 2023-02-27 11:39:04 -03:00
admin-menu.js
ajax.js
audio_alerts.js Bug 31413: Set focus for cursor to Selector when adding a new audio alert 2023-02-24 17:52:27 -03:00
auth-finder-search.js
authorities-detail-modal.js
authtype.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
automatic_item_modification_by_age.js
background-job-progressbar.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
basket.js Bug 33597: Get rid of warning about intranet_bib_list 2023-05-05 09:13:29 -03:00
biblio_framework.js
browser.js
calendar.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
cart.js
cashup_modal.js
catalog.js
cataloging.js Bug 32484: Enable plugins when UseACQFrameworkForBiblioRecords is set 2023-04-21 10:36:28 -03:00
cataloging_additem.js Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
categories.js
charts.js
checkout_renewals_modal.js Bug 30642: (follow-up) Change sql and adapt for translations 2023-02-10 11:07:58 -03:00
checkouts.js Bug 31209: Add a span with a class for items.enumchron in the checkouts list 2023-02-20 09:44:17 -03:00
datatables.js Bug 22440: New ILL requests table 2023-05-05 09:13:41 -03:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 22440: Move backend statuses api endpoint 2023-05-05 09:13:43 -03:00
item_search_fields.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
job_progess.js
letter.js Bug 33622: Notice content does not show on default tab if TranslateNotices enabled 2023-05-09 11:46:53 -03:00
localcovers.js
mana.js
marc_modification_templates.js Bug 32164: Add link to MARC modification templates from batch record modification page 2023-04-06 09:47:28 -03:00
marc_subfields_structure.js
members-menu.js
members.js Bug 33684: Make mandatory date fields required when editing a patron 2023-05-10 15:26:27 -03:00
merge-record.js
messaging-preference-form.js Bug 31166: Digest option is not selectable for phone when PhoneNotification is enabled 2022-12-13 14:59:51 -03:00
offlinecirc.js
onboarding.js
patron-autocomplete.js Bug 26967: Correctly format patron address in autocomplete 2023-04-21 10:36:26 -03:00
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
restrictiontypes.js
rotating-collections.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js Bug 32618: Add 'page-section' to various administration pages 2023-01-31 09:36:42 -03:00
staff-global.js Bug 33597: Fix deleting cookie for holdfor(club) 2023-05-05 09:13:30 -03:00
subscription-add.js Bug 31935: (follow-up) Make form look better 2023-01-05 09:24:29 -03:00
table_filters.js Bug 32447: Fix DataTable filtering when hidden columns are in place 2023-03-31 19:19:27 +02:00
tools-menu.js
upload-images.js
viewlog.js
xmlControlfield.js Bug 22490: Some strings in JavaScript files are untranslatable 2023-02-24 16:41:31 -03:00
z3950_search.js