beagle_app/app/inputs/qi_date_picker_input.rb
Nicolas Bally 7b6cba2128 initial
2015-01-27 23:13:36 +01:00

13 lines
308 B
Ruby

class QiDatePickerInput < Formtastic::Inputs::TextInput
include FormtasticBootstrap::Inputs::Base
def to_html
r = rand(1000000000000000000000000000)
bootstrap_wrapping do
builder.text_field(method.to_s, input_html_options.merge!(:class => "datepicker form-control"))
end
end
end