peractus_app/app/inputs/qi_datetime_picker_input.rb
Nicolas Bally a5cfbad091 initial
2018-08-06 16:55:14 +02:00

13 lines
316 B
Ruby

class QiDatetimePickerInput < 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 => "datetimepicker form-control"))
end
end
end