Item1240: Look at the possibility to use a nicer date picker
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Unobtrusive Date-Picker Widget V4
I would like to have a look if it is feasible to replace JSCalendarContrib with this picker.
That would also mean to replace current 'hardcoded' calls like:
CGI::image_button(
-class => 'editTableCalendarButton',
-name => 'calendar',
-onclick => "return showCalendar('id$theName','$ifFormat')",
-src => Foswiki::Func::getPubUrlPath() . '/'
. $Foswiki::cfg{SystemWebName}
. '/JSCalendarContrib/img.gif',
-alt => 'Calendar',
-align => 'middle'
);
by something more future proof. Start by actually
using Foswiki::Contrib::JSCalendarContrib::renderDateForEdit
.
--
ArthurClemens - 11 Mar 2009
See also
Item14056 for suggested alternatives.
--
Main.GeorgeClark - 25 Sep 2016 - 19:24
We are already shipping jquery-ui which comes with a decent date picker.
MoreFormfieldsPlugin provides a date2 formfield type, as well as a separate time picker and a time formfield. Only thing jquery-ui 's date picker is lacking is conversion of different time formats. But that is best served by
JQMomentContrib basically.
--
MichaelDaum - 26 Sep 2016
Okay, let's no-action this one. It's ancient. Or is there an action here between this and
Item14056 to deprecate
JSCalenderContrib and change our defaults to use the new jquery-ui picker.
--
GeorgeClark - 26 Sep 2016
While
jquery-ui datepicker is the way to go when deprecating JSCalenderContrib, it is not yet a 100% replacement. As is, it covers say 95% of all use cases. There are some config options and conversions part of jscalender that are
not in jquery-ui datepicker. I.E. jscalender understands a lot more date formats for initial values than jquery-ui datepicker....something we probably need to port then. So "Proposal Required" is the right approach, which should then cover all features in jscalender that we'd like to preserve. The bits are there ...
--
MichaelDaum - 26 Sep 2016