Sha256: a5d1e68c953b707eb0315c5773db354728a144dcad14cd70737c872cdc67cc4f

Contents?: true

Size: 921 Bytes

Versions: 65

Compression:

Stored size: 921 Bytes

Contents

# frozen_string_literal: true

SimpleForm.setup do |config|
  config.wrappers :horizontal_clockpicker,
                  tag: :div,
                  class: :row,
                  hint_class: :field_with_hint,
                  error_class: :error do |b|

    b.use :html5
    b.use :placeholder
    b.optional :maxlength
    b.optional :pattern
    b.optional :min_max
    b.optional :readonly

    b.wrapper :label_wrapper, tag: :div, class: "small-3 columns" do |ba|
      ba.use :label, class: "right inline"
    end

    b.wrapper :right_input_wrapper, tag: :div, class: "small-9 columns" do |ba|
      ba.wrapper :x, tag: :div, class: "row collapse clockpicker-wrapper" do |bc|
        bc.use :prefix_column
        bc.use :input_column
        bc.use :error, wrap_with: { tag: :small, class: [:error, :datepicker_error] }
        bc.use :hint,  wrap_with: { tag: :span, class: :hint }
      end
    end
  end
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
renalware-core-2.0.22 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.21 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.20 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.18 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.17 config/initializers/simple_form_clock_picker.rb