Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Now that #315035: Add jQuery UI elements to core is in, we can look at using it in parts of core. This issue is to apply the jQuery UI Date Picker to the Form API Date Field and see live use of it in the Profile module.
Comment | File | Size | Author |
---|---|---|---|
#2 | datepicker.css_.txt | 3.98 KB | hass |
Comments
Comment #1
xmacinfoAdding jQuery UI tag.
Comment #2
hass CreditAttribution: hass commentedOnly to note - I've created a date picker theme for Date API (date_popup) module some time ago... you can find it in the date api package...
Comment #3
webchickThis issue will be interesting because we're going to need to deal with jQuery UI translation, which we initially kicked from the original patch.
Also, rather than Profile date fields -- which may or may not be going away, depending on what happens w/ Field API -- how about just $node->created?
Comment #4
hass CreditAttribution: hass commentedNot sure if the translation approach of
date_popup_process_date()
is core worthy, but Karen have implemented a Drupal way.I would also love to see the node field "Authored on" replaced with a user friendly date picker...
Comment #5
redndahead CreditAttribution: redndahead commentedI created an issue to add Date Picker to authored on field. #504524: Extend Authored on field with jQuery UI Date Picker
Comment #6
RobLoachRegarding translations, we could do this through Locale after #315100: Allow to add JS/CSS libraries (sets of files, settings, and dependent libraries) goes in with
locale_library_alter()
, much like how locale_js_alter() adds the translations for the JavaScript files.Comment #7
Bojhan CreditAttribution: Bojhan commentedIn any case - if we are going to reuse jquery pattrens, make sure to attach a screenshot so we can review.
Comment #8
tanoshimi CreditAttribution: tanoshimi commentedSubscribe
Comment #9
executex CreditAttribution: executex commentedHas this ever been completed? Or are we forced to find a module for it?
I always have a need for a date picker, and a null option.
I can't tell you how many times I've built a form, and users tell me "Well why is it 1969?!?!"... because it's a NULL date, and Date field refuses to add a or or 0 or "choose:" to the #type=> 'Date' type select box.
Comment #10
Damien Tournoud CreditAttribution: Damien Tournoud commentedThat will be for D8 now.
Comment #11
executex CreditAttribution: executex commentedReally that hard to add in a date picker to warrant waiting another 4-5 years?
Comment #12
Bojhan CreditAttribution: Bojhan commentedyes
Comment #13
nod_Closing, we now have a date field for this #1496632: Add new HTML5 FAPI Element : date