Browse files

First pages commit

  • Loading branch information...
0 parents commit 99f51215d15237472f0adad7efefe40913635daf @brianjlandau committed Feb 11, 2009
142 classes/UnobtrusiveDatePicker.html
@@ -0,0 +1,142 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: UnobtrusiveDatePicker</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">UnobtrusiveDatePicker</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/unobtrusive_date_picker_rb.html">
+ lib/unobtrusive_date_picker.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Module <a href="UnobtrusiveDatePicker/AssetTagHelper.html" class="link">UnobtrusiveDatePicker::AssetTagHelper</a><br />
+Module <a href="UnobtrusiveDatePicker/OptionParser.html" class="link">UnobtrusiveDatePicker::OptionParser</a><br />
+Module <a href="UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html" class="link">UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper</a><br />
+Class <a href="UnobtrusiveDatePicker/DateTimePickerSelector.html" class="link">UnobtrusiveDatePicker::DateTimePickerSelector</a><br />
+
+ </div>
+
+ <div id="constants-list">
+ <h3 class="section-bar">Constants</h3>
+
+ <div class="name-list">
+ <table summary="Constants">
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">DATEPICKER_DEFAULT_NAME_ID_SUFFIXES</td>
+ <td>=</td>
+ <td class="context-item-value">{ :year =&gt; {:id =&gt; '', :name =&gt; 'year'}, :month =&gt; {:id =&gt; 'mm', :name =&gt; 'month'}, :day =&gt; {:id =&gt; 'dd', :name =&gt; 'day'} }</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">DATEPICKER_DAYS_OF_WEEK</td>
+ <td>=</td>
+ <td class="context-item-value">{ :Monday =&gt; '0', :Tuesday =&gt; '1', :Wednesday =&gt; '2', :Thursday =&gt; '3', :Friday =&gt; '4', :Saturday =&gt; '5', :Sunday =&gt; '6'}</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">DATEPICKER_DIVIDERS</td>
+ <td>=</td>
+ <td class="context-item-value">{ 'slash' =&gt; '/', 'dash' =&gt; '-', 'dot' =&gt; '.', 'space' =&gt; ' ' }</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">RANGE_DATE_FORMAT</td>
+ <td>=</td>
+ <td class="context-item-value">'%Y-%m-%d'</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
147 classes/UnobtrusiveDatePicker/AssetTagHelper.html
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: UnobtrusiveDatePicker::AssetTagHelper</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">UnobtrusiveDatePicker::AssetTagHelper</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/unobtrusive_date_picker_rb.html">
+ lib/unobtrusive_date_picker.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000001">unobtrusive_datepicker_includes</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000001" class="method-detail">
+ <a name="M000001"></a>
+
+ <div class="method-heading">
+ <a href="#M000001" class="method-signature">
+ <span class="method-name">unobtrusive_datepicker_includes</span><span class="method-args">(options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+This will add the necessary &lt;link&gt; and &lt;script&gt; tags to include
+the necessary stylesheet and javascripts.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000001-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 86</span>
+86: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_datepicker_includes</span>(<span class="ruby-identifier">options</span> = {})
+87: <span class="ruby-identifier">tags</span> = []
+88: <span class="ruby-identifier">tags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">javascript_include_tag</span>(<span class="ruby-value str">'datepicker'</span>, <span class="ruby-identifier">options</span>)
+89: <span class="ruby-identifier">tags</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">stylesheet_link_tag</span>(<span class="ruby-value str">'datepicker'</span>, <span class="ruby-identifier">options</span>)
+90: <span class="ruby-identifier">tags</span> <span class="ruby-operator">*</span> <span class="ruby-value str">&quot;\n&quot;</span>
+91: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
183 classes/UnobtrusiveDatePicker/DateTimePickerSelector.html
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: UnobtrusiveDatePicker::DateTimePickerSelector</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">UnobtrusiveDatePicker::DateTimePickerSelector</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/unobtrusive_date_picker_rb.html">
+ lib/unobtrusive_date_picker.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ ActionView::Helpers::DateTimeSelector
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000014">new</a>&nbsp;&nbsp;
+ <a href="#M000015">text_date_picker</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+ <div id="includes">
+ <h3 class="section-bar">Included Modules</h3>
+
+ <div id="includes-list">
+ <span class="include-name">ActionView::Helpers::FormTagHelper</span>
+ <span class="include-name"><a href="OptionParser.html">OptionParser</a></span>
+ </div>
+ </div>
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000014" class="method-detail">
+ <a name="M000014"></a>
+
+ <div class="method-heading">
+ <a href="#M000014" class="method-signature">
+ <span class="method-name">new</span><span class="method-args">(datetime, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000014-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 211</span>
+211: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+212: <span class="ruby-keyword kw">super</span>
+213: <span class="ruby-ivar">@options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-identifier">:twelve_hour</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>)
+214: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000015" class="method-detail">
+ <a name="M000015"></a>
+
+ <div class="method-heading">
+ <a href="#M000015" class="method-signature">
+ <span class="method-name">text_date_picker</span><span class="method-args">(name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000015-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 216</span>
+216: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">text_date_picker</span>(<span class="ruby-identifier">name</span>)
+217: <span class="ruby-identifier">value</span> = <span class="ruby-identifier">format_date_value_for_text_field</span>(<span class="ruby-ivar">@datetime</span>, <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:format</span>], <span class="ruby-ivar">@options</span>[<span class="ruby-identifier">:divider</span>])
+218: <span class="ruby-ivar">@html_options</span>[<span class="ruby-identifier">:class</span>] = <span class="ruby-identifier">get_html_classes_for_datepicker</span>(<span class="ruby-ivar">@options</span>, <span class="ruby-ivar">@html_options</span>[<span class="ruby-identifier">:class</span>])
+219: <span class="ruby-identifier">text_field_tag</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>, <span class="ruby-ivar">@html_options</span>)
+220: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
346 classes/UnobtrusiveDatePicker/OptionParser.html
@@ -0,0 +1,346 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: UnobtrusiveDatePicker::OptionParser</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">UnobtrusiveDatePicker::OptionParser</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/unobtrusive_date_picker_rb.html">
+ lib/unobtrusive_date_picker.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000009">format_date_value_for_text_field</a>&nbsp;&nbsp;
+ <a href="#M000010">get_html_classes_for_datepicker</a>&nbsp;&nbsp;
+ <a href="#M000011">make_date_picker_class_options</a>&nbsp;&nbsp;
+ <a href="#M000012">parse_days_of_week</a>&nbsp;&nbsp;
+ <a href="#M000008">parse_divider_option</a>&nbsp;&nbsp;
+ <a href="#M000013">parse_range_option</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Protected Instance methods</h3>
+
+ <div id="method-M000009" class="method-detail">
+ <a name="M000009"></a>
+
+ <div class="method-heading">
+ <a href="#M000009" class="method-signature">
+ <span class="method-name">format_date_value_for_text_field</span><span class="method-args">(value, format, divider_option)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000009-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 104</span>
+104: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">format_date_value_for_text_field</span>(<span class="ruby-identifier">value</span>, <span class="ruby-identifier">format</span>, <span class="ruby-identifier">divider_option</span>)
+105: <span class="ruby-identifier">divider</span> = <span class="ruby-constant">DATEPICKER_DIVIDERS</span>[<span class="ruby-identifier">parse_divider_option</span>(<span class="ruby-identifier">divider_option</span>)]
+106: <span class="ruby-identifier">format_string</span> = <span class="ruby-identifier">format</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/(m|d)/</span>, <span class="ruby-value str">'%\1'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp re">/y/</span>, <span class="ruby-value str">'%Y'</span>).<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'-'</span>, <span class="ruby-identifier">divider</span>)
+107: <span class="ruby-identifier">value</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">format_string</span>)
+108: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000010" class="method-detail">
+ <a name="M000010"></a>
+
+ <div class="method-heading">
+ <a href="#M000010" class="method-signature">
+ <span class="method-name">get_html_classes_for_datepicker</span><span class="method-args">(options, html_options_class, extra_class = nil)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000010-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 110</span>
+110: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_html_classes_for_datepicker</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options_class</span>, <span class="ruby-identifier">extra_class</span> = <span class="ruby-keyword kw">nil</span>)
+111: <span class="ruby-identifier">html_classes</span> = <span class="ruby-identifier">make_date_picker_class_options</span>(<span class="ruby-identifier">options</span>)
+112: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">extra_class</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">extra_class</span>
+113: <span class="ruby-identifier">html_options_class</span>.<span class="ruby-identifier">blank?</span> <span class="ruby-value">? </span>
+114: <span class="ruby-identifier">html_classes</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) <span class="ruby-operator">:</span> <span class="ruby-node">&quot;#{html_options_class} #{html_classes.join(' ')}&quot;</span>
+115: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000011" class="method-detail">
+ <a name="M000011"></a>
+
+ <div class="method-heading">
+ <a href="#M000011" class="method-signature">
+ <span class="method-name">make_date_picker_class_options</span><span class="method-args">(options)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000011-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 117</span>
+117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_date_picker_class_options</span>(<span class="ruby-identifier">options</span>)
+118: <span class="ruby-identifier">html_classes</span> = []
+119:
+120: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:highlight_days</span>]
+121: <span class="ruby-identifier">highlight_days</span> = <span class="ruby-identifier">parse_days_of_week</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:highlight_days</span>])
+122: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">highlight_days</span>.<span class="ruby-identifier">blank?</span>
+123: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;highlight-days-#{highlight_days}&quot;</span>
+124: <span class="ruby-keyword kw">end</span>
+125: <span class="ruby-keyword kw">end</span>
+126:
+127: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:range_low</span>]
+128: <span class="ruby-identifier">range_low</span> = <span class="ruby-identifier">parse_range_option</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:range_low</span>], <span class="ruby-value str">'low'</span>)
+129: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">range_low</span>.<span class="ruby-identifier">blank?</span>
+130: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">range_low</span>
+131: <span class="ruby-keyword kw">end</span>
+132: <span class="ruby-keyword kw">end</span>
+133:
+134: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:range_high</span>]
+135: <span class="ruby-identifier">range_high</span> = <span class="ruby-identifier">parse_range_option</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:range_high</span>], <span class="ruby-value str">'high'</span>)
+136: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">range_high</span>.<span class="ruby-identifier">blank?</span>
+137: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">range_high</span>
+138: <span class="ruby-keyword kw">end</span>
+139: <span class="ruby-keyword kw">end</span>
+140:
+141: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:disable_days</span>]
+142: <span class="ruby-identifier">disable_days</span> = <span class="ruby-identifier">parse_days_of_week</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:disable_days</span>])
+143: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">disable_days</span>.<span class="ruby-identifier">blank?</span>
+144: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;disable-days-#{disable_days}&quot;</span>
+145: <span class="ruby-keyword kw">end</span>
+146: <span class="ruby-keyword kw">end</span>
+147:
+148: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:no_transparency</span>]
+149: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-value str">'no-transparency'</span>
+150: <span class="ruby-keyword kw">end</span>
+151:
+152: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>] <span class="ruby-operator">&amp;&amp;</span> ??(<span class="ruby-identifier">d</span><span class="ruby-operator">-</span><span class="ruby-identifier">m</span><span class="ruby-operator">-</span><span class="ruby-identifier">y</span> <span class="ruby-identifier">m</span><span class="ruby-operator">-</span><span class="ruby-identifier">d</span><span class="ruby-operator">-</span><span class="ruby-identifier">y</span> <span class="ruby-identifier">y</span><span class="ruby-operator">-</span><span class="ruby-identifier">m</span><span class="ruby-operator">-</span><span class="ruby-identifier">d</span>).<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:format</span>].<span class="ruby-identifier">downcase</span>)
+153: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;format-#{options[:format].downcase}&quot;</span>
+154: <span class="ruby-keyword kw">end</span>
+155:
+156: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:divider</span>]
+157: <span class="ruby-identifier">html_classes</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;divider-#{parse_divider_option(options[:divider])}&quot;</span>
+158: <span class="ruby-keyword kw">end</span>
+159:
+160: <span class="ruby-identifier">html_classes</span>
+161: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000012" class="method-detail">
+ <a name="M000012"></a>
+
+ <div class="method-heading">
+ <a href="#M000012" class="method-signature">
+ <span class="method-name">parse_days_of_week</span><span class="method-args">(option)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000012-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 163</span>
+163: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_days_of_week</span>(<span class="ruby-identifier">option</span>)
+164: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
+165: <span class="ruby-identifier">option</span>
+166: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span>
+167: <span class="ruby-constant">DATEPICKER_DAYS_OF_WEEK</span>[<span class="ruby-identifier">option</span>]
+168: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Array</span>
+169: <span class="ruby-identifier">days</span> = <span class="ruby-value str">''</span>
+170: <span class="ruby-identifier">option</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">day</span><span class="ruby-operator">|</span>
+171: <span class="ruby-identifier">days</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">DATEPICKER_DAYS_OF_WEEK</span>[<span class="ruby-identifier">day</span>]
+172: <span class="ruby-keyword kw">end</span>
+173: <span class="ruby-identifier">days</span>
+174: <span class="ruby-keyword kw">end</span>
+175: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000008" class="method-detail">
+ <a name="M000008"></a>
+
+ <div class="method-heading">
+ <a href="#M000008" class="method-signature">
+ <span class="method-name">parse_divider_option</span><span class="method-args">(option)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000008-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 96</span>
+ 96: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_divider_option</span>(<span class="ruby-identifier">option</span>)
+ 97: <span class="ruby-keyword kw">if</span> <span class="ruby-constant">DATEPICKER_DIVIDERS</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">option</span>)
+ 98: <span class="ruby-identifier">option</span>
+ 99: <span class="ruby-keyword kw">else</span>
+100: <span class="ruby-constant">DATEPICKER_DIVIDERS</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span><span class="ruby-operator">|</span> <span class="ruby-identifier">option</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">value</span>}.<span class="ruby-identifier">first</span>
+101: <span class="ruby-keyword kw">end</span>
+102: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000013" class="method-detail">
+ <a name="M000013"></a>
+
+ <div class="method-heading">
+ <a href="#M000013" class="method-signature">
+ <span class="method-name">parse_range_option</span><span class="method-args">(option, direction)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000013-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 177</span>
+177: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parse_range_option</span>(<span class="ruby-identifier">option</span>, <span class="ruby-identifier">direction</span>)
+178: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span>
+179: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">option</span>
+180: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:today</span>
+181: <span class="ruby-identifier">range_class</span> = <span class="ruby-value str">'today'</span>
+182: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:tomorrow</span>
+183: <span class="ruby-identifier">range_class</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">tomorrow</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-constant">RANGE_DATE_FORMAT</span>)
+184: <span class="ruby-keyword kw">when</span> <span class="ruby-identifier">:yesterday</span>
+185: <span class="ruby-identifier">range_class</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">yesterday</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-constant">RANGE_DATE_FORMAT</span>)
+186: <span class="ruby-keyword kw">end</span>
+187: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span>
+188: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">option</span>.<span class="ruby-identifier">blank?</span>
+189: <span class="ruby-identifier">range_class</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">option</span>).<span class="ruby-identifier">strftime</span>(<span class="ruby-constant">RANGE_DATE_FORMAT</span>)
+190: <span class="ruby-keyword kw">else</span>
+191: <span class="ruby-identifier">range_class</span> = <span class="ruby-keyword kw">nil</span>
+192: <span class="ruby-keyword kw">end</span>
+193: <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Date</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">DateTime</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Time</span>))
+194: <span class="ruby-identifier">range_class</span> = <span class="ruby-identifier">option</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-constant">RANGE_DATE_FORMAT</span>)
+195: <span class="ruby-keyword kw">else</span>
+196: <span class="ruby-identifier">range_class</span> = <span class="ruby-keyword kw">nil</span>
+197: <span class="ruby-keyword kw">end</span>
+198:
+199: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">range_class</span>.<span class="ruby-identifier">blank?</span>
+200: <span class="ruby-identifier">range_class</span> = <span class="ruby-value str">'range-'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">direction</span> <span class="ruby-operator">+</span> <span class="ruby-value str">'-'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">range_class</span>
+201: <span class="ruby-keyword kw">else</span>
+202: <span class="ruby-keyword kw">nil</span>
+203: <span class="ruby-keyword kw">end</span>
+204: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
288 classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html
@@ -0,0 +1,288 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/unobtrusive_date_picker_rb.html">
+ lib/unobtrusive_date_picker.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <h2>Unobtrusive Date-Picker Helper</h2>
+<p>
+This Module helps to create date and date-time fields that use the
+Unobtrusive Date-Picker Javascript Widget.
+</p>
+<p>
+They also use the 12-hour AM/PM time format.
+</p>
+
+ </div>
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000002">unobtrusive_date_picker</a>&nbsp;&nbsp;
+ <a href="#M000006">unobtrusive_date_picker_tags</a>&nbsp;&nbsp;
+ <a href="#M000004">unobtrusive_date_text_picker</a>&nbsp;&nbsp;
+ <a href="#M000007">unobtrusive_date_text_picker_tag</a>&nbsp;&nbsp;
+ <a href="#M000003">unobtrusive_datetime_picker</a>&nbsp;&nbsp;
+ <a href="#M000005">unobtrusive_datetime_picker_tags</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000002" class="method-detail">
+ <a name="M000002"></a>
+
+ <div class="method-heading">
+ <a href="#M000002" class="method-signature">
+ <span class="method-name">unobtrusive_date_picker</span><span class="method-args">(object_name, method, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Creates the date picker with the calendar widget.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000002-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 36</span>
+36: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_date_picker</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+37: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:object</span>)).<span class="ruby-identifier">to_datepicker_date_select_tag</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
+38: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000006" class="method-detail">
+ <a name="M000006"></a>
+
+ <div class="method-heading">
+ <a href="#M000006" class="method-signature">
+ <span class="method-name">unobtrusive_date_picker_tags</span><span class="method-args">(date = Date.current, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000006-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 59</span>
+59: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_date_picker_tags</span>(<span class="ruby-identifier">date</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">current</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+60: <span class="ruby-identifier">date</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Date</span>.<span class="ruby-identifier">current</span>
+61: <span class="ruby-constant">DateTimePickerSelector</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">date</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>).<span class="ruby-identifier">select_date</span>
+62: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="#M000004" class="method-signature">
+ <span class="method-name">unobtrusive_date_text_picker</span><span class="method-args">(object_name, method, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Creates the date picker with the calendar widget.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000004-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 50</span>
+50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_date_text_picker</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+51: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:object</span>)).<span class="ruby-identifier">to_datepicker_text_tag</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
+52: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000007" class="method-detail">
+ <a name="M000007"></a>
+
+ <div class="method-heading">
+ <a href="#M000007" class="method-signature">
+ <span class="method-name">unobtrusive_date_text_picker_tag</span><span class="method-args">(name, date = Date.current, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Creates the text field based date picker with the calendar widget without a
+model object.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000007-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 67</span>
+67: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_date_text_picker_tag</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">date</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">current</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+68: <span class="ruby-identifier">date</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Date</span>.<span class="ruby-identifier">current</span>
+69: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">merge_defaults_for_text_picker</span>(<span class="ruby-identifier">options</span>)
+70: <span class="ruby-constant">DateTimePickerSelector</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">date</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>).<span class="ruby-identifier">text_date_picker</span>(<span class="ruby-identifier">name</span>)
+71: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000003" class="method-detail">
+ <a name="M000003"></a>
+
+ <div class="method-heading">
+ <a href="#M000003" class="method-signature">
+ <span class="method-name">unobtrusive_datetime_picker</span><span class="method-args">(object_name, method, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p>
+Creates the date-time picker with the calendar widget, and AM/PM select.
+</p>
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000003-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 43</span>
+43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_datetime_picker</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+44: <span class="ruby-constant">ActionView</span><span class="ruby-operator">::</span><span class="ruby-constant">Helpers</span><span class="ruby-operator">::</span><span class="ruby-constant">InstanceTag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:object</span>)).<span class="ruby-identifier">to_datepicker_datetime_select_tag</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>)
+45: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+ <div id="method-M000005" class="method-detail">
+ <a name="M000005"></a>
+
+ <div class="method-heading">
+ <a href="#M000005" class="method-signature">
+ <span class="method-name">unobtrusive_datetime_picker_tags</span><span class="method-args">(datetime = Time.current, options = {}, html_options = {})</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ <p><a class="source-toggle" href="#"
+ onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
+ <div class="method-source-code" id="M000005-source">
+<pre>
+ <span class="ruby-comment cmt"># File lib/unobtrusive_date_picker.rb, line 54</span>
+54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unobtrusive_datetime_picker_tags</span>(<span class="ruby-identifier">datetime</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">current</span>, <span class="ruby-identifier">options</span> = {}, <span class="ruby-identifier">html_options</span> = {})
+55: <span class="ruby-identifier">datetime</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Time</span>.<span class="ruby-identifier">current</span>
+56: <span class="ruby-constant">DateTimePickerSelector</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">datetime</span>, <span class="ruby-identifier">options</span>, <span class="ruby-identifier">html_options</span>).<span class="ruby-identifier">select_datetime</span>
+57: <span class="ruby-keyword kw">end</span>
+</pre>
+ </div>
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
1 created.rid
@@ -0,0 +1 @@
+Wed, 11 Feb 2009 12:54:14 -0500
287 files/README_rdoc.html
@@ -0,0 +1,287 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: README.rdoc</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>README.rdoc</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>README.rdoc
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Wed Feb 11 12:53:09 -0500 2009</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <h1>Unobtrusive Date-Picker Widget Plugin</h1>
+<p>
+This is a helper for creating a date or date-time picker that uses the
+Unobtrusive Date-Picker Widget(sic) (<a
+href="http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update">www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update</a>)
+to add a clickable calendar image that will bring up a calendar picker if
+javascript is available. It replicates as much of the API of the Rails
+`date_select`, and `datetime_select` form helpers.
+</p>
+<p>
+It also uses the 12 Hour Time plugin (<a
+href="http://code.google.com/p/rails-twelve-hour-time-plugin">code.google.com/p/rails-twelve-hour-time-plugin</a>/)
+so that 12 Hour times can be processed by Active Record.
+</p>
+<p>
+You may want to consider compressing the javascript files with Dean
+Edward&#8216;s Packer (<a
+href="http://dean.edwards.name/packer">dean.edwards.name/packer</a>/) or
+Douglas Crockford&#8216;s JSMin (<a
+href="http://www.crockford.com/javascript/jsmin.html">www.crockford.com/javascript/jsmin.html</a>)
+before deploying your application.
+</p>
+<h2>Install</h2>
+<pre>
+ `script/plugin install git@github.com:brianjlandau/unobtrusive_date_picker.git`
+</pre>
+<h2>Usage</h2>
+<p>
+To be able to use the date-picker methods below you need to include the
+javascript library file and CSS stylesheet in the &lt;head&gt; of your
+layout template. You can do this either by manually including the files via
+a `javascript_include_tag` and a `stylesheet_link_tag` (the files are both
+named &quot;datepicker&quot;), OR by using the included
+`unobtrusive_datepicker_includes` helper method, which will do this for
+you.
+</p>
+<p>
+There are 4 main methods:
+</p>
+<pre>
+ - unobtrusive_date_picker
+ - unobtrusive_datetime_picker
+ - unobtrusive_date_picker_tags
+ - unobtrusive_datetime_picker_tags
+ - unobtrusive_date_text_picker
+ - unobtrusive_date_text_picker_tag
+</pre>
+<p>
+Options (* indicates same functionality as is in Rails Date helpers):
+</p>
+<pre>
+ - *:order =&gt; the order the selects should be positioned in
+ - *:include_blank =&gt; include a blank option at the top of every select
+ - *:start_year =&gt; year that the year select should start on (defaults to 5
+ below either the year of the date value or current year)
+ - *:end_year =&gt; year that the year select should end on (defaults to 5 above
+ either the year of the date value or current year)
+ - *:minute_step =&gt; how many minutes apart each minute option should be
+ - example: (:minute_step =&gt; 5) would result in [0, 15, 30, 45] as options
+ - *:use_short_month =&gt; use short month names (Jan, Feb, etc.) instead of long
+ names (January) for option text
+ - *:use_month_numbers =&gt; use month numbers instead of names for option text
+ - *:add_month_numbers =&gt; add month numbers to names for option text (&quot;1 - January&quot;)
+ - :highlight_days =&gt; which days of the week should be highlighted in the datepicker (by default Saturday and Sunday)
+ - Excepts either a string of number representing days of the week (0 = Monday, 1 = Tuesday ... 6 = Sunday)
+ - Or a singular symbol for one day of the week
+ - Or an array of symbols representing days of the week, i.e. [:Monday, :Sunday]
+ - :range_low =&gt; the low range of acceptable dates (not times) for this input
+ - managed by the Javascript, thus should be enforced with your own validations
+ - Excepts:
+ - One of the following symbols: :today, :tomorrow, :yesterday
+ - A string representation of a date
+ - A Date, DateTime, or Time object
+ - :range_high =&gt; the high range of acceptable dates (not times) for this input
+ - Excepts same options as :range_low; also managed by javascript
+ - :disable_days =&gt; days of the week that may not be selected
+ - Excepts the same format as :highlight_days
+ - Also managed by javascript
+ - :no_transparency =&gt; if set to true it disables the fade in/out
+ visual effect of the datepicker
+</pre>
+<p>
+The `unobtrusive_date_text_picker` and `unobtrusive_date_text_picker_tag`
+methods don&#8216;t except the &quot;:order&quot;,
+&quot;:include_blank&quot;, &quot;:start_year&quot;, &quot;:end_year&quot;,
+&quot;:minute_step&quot;, &quot;:use_short_month&quot;,
+&quot;:use_month_numbers&quot;, and &quot;:add_month_numbers&quot; options.
+It does use these options though:
+</p>
+<pre>
+ - :format =&gt; the format the date should be in
+ - m-d-y
+ - d-m-y
+ - y-m-d
+ - :divider =&gt; the divider used between the dates
+ - &quot;slash&quot; or &quot;/&quot;
+ - &quot;dash&quot; or &quot;-&quot;
+ - &quot;dot&quot; or &quot;.&quot;
+ - &quot;space&quot; or &quot; &quot;
+</pre>
+<h4>RJS Method</h4>
+<p>
+There is an additional RJS method to re initialize the Date Pickers when an
+AJAX response is supplied to the client:
+</p>
+<pre>
+ - unobtrusive_date_picker_create
+ - This method can accept the DOM ID of a year select element to turn into
+ a date picker widget or if none is provided it will create all based on
+ the appropriate class name.
+</pre>
+<h4>Rake task</h4>
+<p>
+There is also a rake task that can be executed by running `rake
+datepicker:update` in your Rails apps root directory. This task will update
+your datepicker javascripts, stylesheets, and images. This is useful if you
+are using an old version of the plugin that had an older version of the
+Unobtrusive Date-Picker Widget Javascript library, or in the future when
+new version are release and I update the plugin with them.
+</p>
+<h3>Example:</h3>
+<pre>
+ &lt;% form_for :article, :url =&gt; { :action =&gt; @form_action, :id =&gt; @article } do |f| %&gt;
+ &lt;fieldset&gt;
+ ...
+ &lt;label&gt;Date: &lt;%= f.unobtrusive_datetime_picker :date %&gt;&lt;/label&gt;&lt;br /&gt;
+ ...
+ &lt;/fieldset&gt;
+ &lt;% end %&gt;
+</pre>
+<h3>Produces (Current date when output: 12/6/07):</h3>
+<pre>
+ &lt;form action=&quot;/form/create&quot; method=&quot;post&quot;&gt;
+ &lt;fieldset&gt;
+
+ &lt;label&gt;Date:
+ &lt;select id=&quot;article_date-dd&quot; name=&quot;article[date(3i)]&quot;&gt;
+ &lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
+ ...
+ &lt;option value=&quot;31&quot;&gt;31&lt;/option&gt;
+ &lt;/select&gt;
+ &lt;select id=&quot;article_date-mm&quot; name=&quot;article[date(2i)]&quot;&gt;
+ &lt;option value=&quot;1&quot;&gt;January&lt;/option&gt;
+ ...
+ &lt;option value=&quot;12&quot; selected=&quot;selected&quot;&gt;December&lt;/option&gt;
+ &lt;/select&gt;
+ &lt;select id=&quot;article_date&quot; name=&quot;article[date(1i)]&quot; class=&quot;split-date&quot;&gt;
+ &lt;option value=&quot;2002&quot;&gt;2002&lt;/option&gt;
+ ...
+ &lt;option value=&quot;2012&quot;&gt;2012&lt;/option&gt;
+ &lt;/select&gt;
+ &amp;nbsp;
+ &lt;select id=&quot;article_date_4i&quot; name=&quot;article[date(4i)][hour]&quot;&gt;
+ &lt;option value=&quot;1&quot;&gt;1&lt;/option&gt;
+ ...
+ &lt;option value=&quot;12&quot;&gt;12&lt;/option&gt;
+ &lt;/select&gt;
+ :
+ &lt;select id=&quot;article_date_5i&quot; name=&quot;article[date(5i)][minute]&quot;&gt;
+ &lt;option value=&quot;00&quot;&gt;00&lt;/option&gt;
+ ...
+ &lt;option value=&quot;59&quot;&gt;59&lt;/option&gt;
+ &lt;/select&gt;
+ &lt;select id=&quot;article_date_6i&quot; name=&quot;article[date(6i)][ampm]&quot;&gt;
+ &lt;option value=&quot;AMPM&gt;AMPM&lt;/option&gt;
+ &lt;option value=&quot;AMPM&gt;AMPM&lt;/option&gt;
+ &lt;/select&gt;
+ &lt;/label&gt;&lt;br /&gt;
+
+ &lt;/fieldset&gt;
+ &lt;/form&gt;
+</pre>
+<h2>LICENSE</h2>
+<p>
+See MIT-LICENSE file for copyright and licensing information for this
+plugin.
+</p>
+<p>
+Unobtrusive Date-Picker Widget is provided under the Creative Commons
+Attribution-ShareAlike 2.5 license (<a
+href="http://creativecommons.org/licenses/by-sa/2.5">creativecommons.org/licenses/by-sa/2.5</a>/)
+by frequency-decoder.com
+</p>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
125 files/lib/12_hour_time_rb.html
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: 12_hour_time.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>12_hour_time.rb</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>lib/12_hour_time.rb
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Wed Feb 11 12:53:09 -0500 2009</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <h2>Rails Twelve Hour Time Plugin</h2>
+<p>
+<a
+href="http://code.google.com/p/rails-twelve-hour-time-plugin">code.google.com/p/rails-twelve-hour-time-plugin</a>/
+</p>
+<h4>Authors</h4>
+<ul>
+<li>Nick Muerdter (original code)
+
+</li>
+<li>Maurice Aubrey
+
+</li>
+</ul>
+<h4>Used for</h4>
+<p>
+Allows <a
+href="../../classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html">UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper</a>
+to use a AM/PM select of it&#8216;s own, and still be processed correctly
+by Active Record.
+</p>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
101 files/lib/unobtrusive_date_picker_rb.html
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: unobtrusive_date_picker.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>unobtrusive_date_picker.rb</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>lib/unobtrusive_date_picker.rb
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Wed Feb 11 12:53:09 -0500 2009</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
31 fr_class_index.html
@@ -0,0 +1,31 @@
+
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<!--
+
+ Classes
+
+ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Classes</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+ <base target="docwin" />
+</head>
+<body>
+<div id="index">
+ <h1 class="section-bar">Classes</h1>
+ <div id="index-entries">
+ <a href="classes/UnobtrusiveDatePicker.html">UnobtrusiveDatePicker</a><br />
+ <a href="classes/UnobtrusiveDatePicker/AssetTagHelper.html">UnobtrusiveDatePicker::AssetTagHelper</a><br />
+ <a href="classes/UnobtrusiveDatePicker/DateTimePickerSelector.html">UnobtrusiveDatePicker::DateTimePickerSelector</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html">UnobtrusiveDatePicker::OptionParser</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html">UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper</a><br />
+ </div>
+</div>
+</body>
+</html>
29 fr_file_index.html
@@ -0,0 +1,29 @@
+
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<!--
+
+ Files
+
+ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Files</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+ <base target="docwin" />
+</head>
+<body>
+<div id="index">
+ <h1 class="section-bar">Files</h1>
+ <div id="index-entries">
+ <a href="files/README_rdoc.html">README.rdoc</a><br />
+ <a href="files/lib/12_hour_time_rb.html">lib/12_hour_time.rb</a><br />
+ <a href="files/lib/unobtrusive_date_picker_rb.html">lib/unobtrusive_date_picker.rb</a><br />
+ </div>
+</div>
+</body>
+</html>
41 fr_method_index.html
@@ -0,0 +1,41 @@
+
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<!--
+
+ Methods
+
+ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Methods</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+ <base target="docwin" />
+</head>
+<body>
+<div id="index">
+ <h1 class="section-bar">Methods</h1>
+ <div id="index-entries">
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000009">format_date_value_for_text_field (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000010">get_html_classes_for_datepicker (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000011">make_date_picker_class_options (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/DateTimePickerSelector.html#M000014">new (UnobtrusiveDatePicker::DateTimePickerSelector)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000012">parse_days_of_week (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000008">parse_divider_option (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/OptionParser.html#M000013">parse_range_option (UnobtrusiveDatePicker::OptionParser)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/DateTimePickerSelector.html#M000015">text_date_picker (UnobtrusiveDatePicker::DateTimePickerSelector)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000002">unobtrusive_date_picker (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000006">unobtrusive_date_picker_tags (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000004">unobtrusive_date_text_picker (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000007">unobtrusive_date_text_picker_tag (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/AssetTagHelper.html#M000001">unobtrusive_datepicker_includes (UnobtrusiveDatePicker::AssetTagHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000003">unobtrusive_datetime_picker (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ <a href="classes/UnobtrusiveDatePicker/UnobtrusiveDatePickerHelper.html#M000005">unobtrusive_datetime_picker_tags (UnobtrusiveDatePicker::UnobtrusiveDatePickerHelper)</a><br />
+ </div>
+</div>
+</body>
+</html>
24 index.html
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+
+<!--
+
+ Unobtrusive Date-Picker
+
+ -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Unobtrusive Date-Picker</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+</head>
+<frameset rows="20%, 80%">
+ <frameset cols="25%,35%,45%">
+ <frame src="fr_file_index.html" title="Files" name="Files" />
+ <frame src="fr_class_index.html" name="Classes" />
+ <frame src="fr_method_index.html" name="Methods" />
+ </frameset>
+ <frame src="files/README_rdoc.html" name="docwin" />
+</frameset>
+</html>
208 rdoc-style.css
@@ -0,0 +1,208 @@
+
+body {
+ font-family: Verdana,Arial,Helvetica,sans-serif;
+ font-size: 90%;
+ margin: 0;
+ margin-left: 40px;
+ padding: 0;
+ background: white;
+}
+
+h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
+h1 { font-size: 150%; }
+h2,h3,h4 { margin-top: 1em; }
+
+a { background: #eef; color: #039; text-decoration: none; }
+a:hover { background: #039; color: #eef; }
+
+/* Override the base stylesheet's Anchor inside a table cell */
+td > a {
+ background: transparent;
+ color: #039;
+ text-decoration: none;
+}
+
+/* and inside a section title */
+.section-title > a {
+ background: transparent;
+ color: #eee;
+ text-decoration: none;
+}
+
+/* === Structural elements =================================== */
+
+div#index {
+ margin: 0;
+ margin-left: -40px;
+ padding: 0;
+ font-size: 90%;
+}
+
+
+div#index a {
+ margin-left: 0.7em;
+}
+
+div#index .section-bar {
+ margin-left: 0px;
+ padding-left: 0.7em;
+ background: #ccc;
+ font-size: small;
+}
+
+
+div#classHeader, div#fileHeader {
+ width: auto;
+ color: white;
+ padding: 0.5em 1.5em 0.5em 1.5em;
+ margin: 0;
+ margin-left: -40px;
+ border-bottom: 3px solid #006;
+}
+
+div#classHeader a, div#fileHeader a {
+ background: inherit;
+ color: white;
+}
+
+div#classHeader td, div#fileHeader td {
+ background: inherit;
+ color: white;
+}
+
+
+div#fileHeader {
+ background: #057;
+}
+
+div#classHeader {
+ background: #048;
+}
+
+
+.class-name-in-header {
+ font-size: 180%;
+ font-weight: bold;
+}
+
+
+div#bodyContent {
+ padding: 0 1.5em 0 1.5em;
+}
+
+div#description {
+ padding: 0.5em 1.5em;
+ background: #efefef;
+ border: 1px dotted #999;
+}
+
+div#description h1,h2,h3,h4,h5,h6 {
+ color: #125;;
+ background: transparent;
+}
+
+div#validator-badges {
+ text-align: center;
+}
+div#validator-badges img { border: 0; }
+
+div#copyright {
+ color: #333;
+ background: #efefef;
+ font: 0.75em sans-serif;
+ margin-top: 5em;
+ margin-bottom: 0;
+ padding: 0.5em 2em;
+}
+
+
+/* === Classes =================================== */
+
+table.header-table {
+ color: white;
+ font-size: small;
+}
+
+.type-note {
+ font-size: small;
+ color: #DEDEDE;
+}
+
+.xxsection-bar {
+ background: #eee;
+ color: #333;
+ padding: 3px;
+}
+
+.section-bar {
+ color: #333;
+ border-bottom: 1px solid #999;
+ margin-left: -20px;
+}
+
+
+.section-title {
+ background: #79a;
+ color: #eee;
+ padding: 3px;
+ margin-top: 2em;
+ margin-left: -30px;
+ border: 1px solid #999;
+}
+
+.top-aligned-row { vertical-align: top }
+.bottom-aligned-row { vertical-align: bottom }
+
+/* --- Context section classes ----------------------- */
+
+.context-row { }
+.context-item-name { font-family: monospace; font-weight: bold; color: black; }
+.context-item-value { font-size: small; color: #448; }
+.context-item-desc { color: #333; padding-left: 2em; }
+
+/* --- Method classes -------------------------- */
+.method-detail {
+ background: #efefef;
+ padding: 0;
+ margin-top: 0.5em;
+ margin-bottom: 1em;
+ border: 1px dotted #ccc;
+}
+.method-heading {
+ color: black;
+ background: #ccc;
+ border-bottom: 1px solid #666;
+ padding: 0.2em 0.5em 0 0.5em;
+}
+.method-signature { color: black; background: inherit; }
+.method-name { font-weight: bold; }
+.method-args { font-style: italic; }
+.method-description { padding: 0 0.5em 0 0.5em; }
+
+/* --- Source code sections -------------------- */
+
+a.source-toggle { font-size: 90%; }
+div.method-source-code {
+ background: #262626;
+ color: #ffdead;
+ margin: 1em;
+ padding: 0.5em;
+ border: 1px dashed #999;
+ overflow: hidden;
+}
+
+div.method-source-code pre { color: #ffdead; overflow: hidden; }
+
+/* --- Ruby keyword styles --------------------- */
+
+.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
+
+.ruby-constant { color: #7fffd4; background: transparent; }
+.ruby-keyword { color: #00ffff; background: transparent; }
+.ruby-ivar { color: #eedd82; background: transparent; }
+.ruby-operator { color: #00ffee; background: transparent; }
+.ruby-identifier { color: #ffdead; background: transparent; }
+.ruby-node { color: #ffa07a; background: transparent; }
+.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
+.ruby-regexp { color: #ffa07a; background: transparent; }
+.ruby-value { color: #7fffd4; background: transparent; }

0 comments on commit 99f5121

Please sign in to comment.