Tags:
create new tag
view all tags

Feature Proposal: Replace JSCalendarContrib With DatePickerPlugin

screenshot.png

Motivation

The JSCalendarContrib does not play nicely with multiple date pickers on a page when hand-crafting HTML form fields with date pickers. The INCLUDE is also somewhat convoluted and user unfriendly.

Description and Documentation

Create a new DatePickerPlugin that replaces the JSCalendarContrib

Examples

Impact

WhatDoesItAffect: Plugins

Implementation

  • DatePickerPlugin:
    • DONE Handles the DATEPICKER variable to show a date picker input field for use in HTML forms
    • DONE Implements the 'date' type in TWikiForms, module TWiki::Form::Date

  • Modify JSCalendarContrib to play nicely with DatePickerPlugin:
    • DONE Modify implementation to reference code of DatePickerPlugin
    • DONE Remove TWiki::Form::Date
    • DONE Mark contrib as deprecated, but ship with next TWiki release so that existing TWiki apps work.

-- Contributors: Peter Thoeny - 2012-12-08

Discussion

First version of DatePickerPlugin is released, enjoy.

-- Peter Thoeny - 2012-12-10

On my dev server, DatePickerContrib looks the same as JSCalendarContrib. What's the secret sauce to make it look nice as shown above?

-- Hideyo Imazu - 2012-12-14

Update the JSCalendarContrib to the latest version (or uninstall after you fix all content). If you update JSCalendarContrib you need to update EditTablePlugin and other plugins that have dependency on JSCalendarContrib as well.

-- Peter Thoeny - 2012-12-14

Replacing the JSCalendarContrib with the DatePickerPlugin is now accepted based on the 7 day feedback rule.

-- Peter Thoeny - 2012-12-17

And this is now checked in using TWikibug:Item7078 (replace contrib with plugin in TWiki core).

-- Peter Thoeny - 2012-12-17

I don't get it. Why does JSCalendarContrib need to be updated to make DatePickerPlugin look nicer? Doesn't DatePickerPlugin contain everything it needs to perform like that?

-- Hideyo Imazu - 2012-12-17

The DatePickerPlugin has everything. The JSCalendarContrib needs to be either deleted or updated because the Javascript and TWiki::Form::Date conflict with each other.

-- Peter Thoeny - 2012-12-17

Found the issue: The default style if {Plugins}{DatePickerPlugin}{Style} was missing in configure was "blue". I changed the default to "twiki". The example at http://develop.twiki.org/~twiki4/cgi-bin/view/TWiki/DatePickerPlugin works now as expected.

-- Peter Thoeny - 2012-12-21

Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r13 - 2013-02-07 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.