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.87 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.86 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.85 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.84 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.83 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.82 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.81 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.80 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.79 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.78 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.77 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.76 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.75 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.74 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.73 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.72 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.71 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.70 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.69 config/initializers/simple_form_clock_picker.rb
renalware-core-2.0.68 config/initializers/simple_form_clock_picker.rb