Plugins - Unobtrusive Javascript Date-Picker

StarAdd to favorites

This is a helper for creating a date or date-time picker that uses the Unobtrusive Date-Picker Widgit to add a clickable calendar image that will bring up a calendar picker if javascript is available.

The two main form helper methods are unobtrusive_date_picker and unobtrusive_datetime_picker.

It also uses the 12 Hour Time plugin so that 12 Hour times can be processed by Active Record.

Usage

The main options are start_year, end_year, which control the year range.

Example:

<% form_for :article, :url => { :action => @form_action, :id => @article } do |f| %>

    Date: <%= f.unobtrusive_datetime_picker :date %>

<% end %>

Brian Landau

http://code.google.com/p/rails-unobtrusive-date-picker/

http://rails-unobtrusive-date-picker.googlecode.com/svn/trunk/unobtrusive_date_picker/

Rails' (MIT)

  • Currently 4.1/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

View Extensions

Tags

Comments

Add a comment
Gregg 11 Mar 2008

Has anyone modified this, or are there plans to accept a date as a parameter, such as :value=>'20/11/2007' so that it works on update forms as well? ~Gregg

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?