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.

CommentFileSizeAuthor
#2 datepicker.css_.txt3.98 KBhass
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xmacinfo’s picture

Issue tags: +jQuery UI

Adding jQuery UI tag.

hass’s picture

FileSize
3.98 KB

Only 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...

webchick’s picture

This 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?

hass’s picture

Not 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...

redndahead’s picture

I created an issue to add Date Picker to authored on field. #504524: Extend Authored on field with jQuery UI Date Picker

RobLoach’s picture

#4 by hass: Not sure if the translation approach of date_popup_process_date() is core worthy, but Karen have implemented a Drupal way.

Regarding 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.

Bojhan’s picture

In any case - if we are going to reuse jquery pattrens, make sure to attach a screenshot so we can review.

tanoshimi’s picture

Subscribe

executex’s picture

Has 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.

Damien Tournoud’s picture

Version: 7.x-dev » 8.x-dev

That will be for D8 now.

executex’s picture

Really that hard to add in a date picker to warrant waiting another 4-5 years?

Bojhan’s picture

yes

nod_’s picture

Status: Active » Closed (won't fix)

Closing, we now have a date field for this #1496632: Add new HTML5 FAPI Element : date