DHTML Calendar

Adds plugin support for Dynarch DHTML/JavaScript Calendar.

Check out the Demo.

Install it just like many Rails plugins:

 ruby script/plugin install http://dhtml-calendar.googlecode.com/svn/trunk
or, direct from the repository into vendor/plugins:
 cd vendor/plugins
 svn co http://dhtml-calendar.googlecode.com/svn/trunk
  Add to your layout file:

<%= dhtml_calendar_includes %>
  Example .method Usage   In the view, something like:  

<%= popup_calendar 'person', 'birthday',
	{ :class => 'date',
	  :field_title => 'Birthday',
	  :button_image => 'calendar.gif',
	  :button_title => 'Show calendar' },
	{ :firstDay => 1,
	  :range => [1920, 1990],
	  :step => 1,
	  :showOthers => true,
	  :cache => true }
%>
or
<%= calendar 'person', 'birthday',
      { :class => 'date' },
      { :firstDay => 1,
        :range => [1920, 1990],
        :step => 1,
        :showOthers => true }
%>
or
 <%= calendar_field 'person', 'birthday',
       { :class => 'date',
         :date => value,
         :field_title => 'Birthday',
         :button_title => 'Show calendar' },
       { :firstDay => 1,
         :range => [1920, 1990],
         :step => 1,
         :showOthers => true,
         :cache => true }
 %>
or
<%= calendar_select 'person', 'birthday',
      { :class => 'date',
        :date => value,
        :field_title => 'Birthday',
        :button_title => 'Show calendar' },
      { :firstDay => 1,
        :range => [1920, 1990],
        :step => 1,
        :showOthers => true,
        :cache => true }
%>
or
 <%= calendar_box 'person', 'birthday',
       { :class => 'date',
         :date => value,
         :field_title => 'Birthday',
         :form_name => 'custform',
         :button_title => 'Show calendar' },
       { :firstDay => 1,
         :range => [1920, 1990],
         :step => 1,
         :showOthers => true,
         :cache => true }
 %>

Contributions

  Dynarch DHTML/JavaScript Calendar

  CalendarHelper Authored by: Michael Schuerig

Feedback

 For any remark, question or problem, you can leave a message on the forum.