Permalink
Browse files

Date(time) picker input

  • Loading branch information...
1 parent bff392f commit 0abeba2bb22e0f8262735694d2f8c1c23b7218e1 @rvanlieshout rvanlieshout committed Feb 21, 2013
@@ -7,8 +7,8 @@ module Inputs
autoload :CheckBoxesInput, "formtastic-bootstrap/inputs/check_boxes_input"
autoload :CountryInput, "formtastic-bootstrap/inputs/country_input"
autoload :DateInput, "formtastic-bootstrap/inputs/date_input"
- # autoload :DatePickerInput # TODO Come back to this.
- # autoload :DatetimePickerInput # TODO Come back to this.
+ autoload :DatePickerInput, "formtastic-bootstrap/inputs/date_picker_input"
+ autoload :DatetimePickerInput, "formtastic-bootstrap/inputs/datetime_picker_input"
autoload :DateSelectInput, "formtastic-bootstrap/inputs/date_select_input"
autoload :DatetimeInput, "formtastic-bootstrap/inputs/datetime_input"
autoload :DatetimeSelectInput, "formtastic-bootstrap/inputs/datetime_select_input"
@@ -7,7 +7,7 @@ module FormtasticBootstrap
module Inputs
module Base
- # autoload :DatetimePickerish
+ autoload :DatetimePickerish, "formtastic-bootstrap/inputs/base/datetime_pickerish"
# autoload :Associations
autoload :Collections, "formtastic-bootstrap/inputs/base/collections"
autoload :Choices, "formtastic-bootstrap/inputs/base/choices"
@@ -21,7 +21,7 @@ module Base
# autoload :Naming
autoload :Numeric, "formtastic-bootstrap/inputs/base/numeric"
# autoload :Options
- # autoload :Placeholder
+ autoload :Placeholder, "formtastic-bootstrap/inputs/base/placeholder"
autoload :Stringish, "formtastic-bootstrap/inputs/base/stringish"
autoload :Timeish, "formtastic-bootstrap/inputs/base/timeish"
# autoload :Validations
@@ -0,0 +1,10 @@
+module FormtasticBootstrap
+ module Inputs
+ module Base
+ module DatetimePickerish
+ include Base::Placeholder
+ include Formtastic::Inputs::Base::DatetimePickerish
+ end
+ end
+ end
+end
@@ -0,0 +1,9 @@
+module FormtasticBootstrap
+ module Inputs
+ module Base
+ module Placeholder
+ include Formtastic::Inputs::Base::Placeholder
+ end
+ end
+ end
+end
@@ -0,0 +1,9 @@
+module FormtasticBootstrap
+ module Inputs
+ class DatePickerInput < Formtastic::Inputs::DatePickerInput
+ include Base
+ include Base::Stringish
+ include Base::DatetimePickerish
+ end
+ end
+end
@@ -0,0 +1,9 @@
+module FormtasticBootstrap
+ module Inputs
+ class DatetimePickerInput < Formtastic::Inputs::DatetimePickerInput
+ include Base
+ include Base::Stringish
+ include Base::DatetimePickerish
+ end
+ end
+end
Oops, something went wrong.

0 comments on commit 0abeba2

Please sign in to comment.