Sha256: 34806530ed906878f879aecbdb106dd42a214d3e74f06c11cddb25e388448e7a

Contents?: true

Size: 428 Bytes

Versions: 15

Compression:

Stored size: 428 Bytes

Contents

module FormtasticBootstrap
  module Inputs
    class DatetimeInput < Formtastic::Inputs::DatetimeInput
      include Base
      include Base::Stringish
      include Base::Timeish

      def to_html
        generic_input_wrapping do
          inline_inputs_div_wrapping do
            # This newline matters.
            date_input_html << "\n".html_safe << time_input_html
          end
        end
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
speedo-formstrap-1.2.9 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.8 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.7 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.6 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.5 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.4 lib/formtastic-bootstrap/inputs/datetime_input.rb
speedo-formstrap-1.2.0 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.2.0 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.1.2 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.1.1 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.1.0 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.0.3 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.0.2 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.0.1 lib/formtastic-bootstrap/inputs/datetime_input.rb
formtastic-bootstrap-1.0.0 lib/formtastic-bootstrap/inputs/datetime_input.rb