Sha256: fc2a39f30e566dd5ddfe7bbb41cae80632752b7d163c50bbdd8395a1a58915a5

Contents?: true

Size: 762 Bytes

Versions: 137

Compression:

Stored size: 762 Bytes

Contents

# frozen_string_literal: true
SimpleForm.setup do |config|
  config.wrappers :default, class: :input,
                            hint_class: :field_with_hint, error_class: :field_with_errors do |b|
    b.use :html5
    b.use :placeholder
    b.optional :maxlength
    b.optional :pattern
    b.optional :min_max
    b.optional :readonly
    b.use :label_input
    b.use :hint,  wrap_with: { tag: :span, class: :hint }
    b.use :error, wrap_with: { tag: :span, class: :error }
  end
  config.default_wrapper = :default
  config.boolean_style = :nested
  config.button_class = 'btn'
  config.error_notification_tag = :div
  config.error_notification_class = 'error_notification'
  config.browser_validations = false
  config.boolean_label_class = 'checkbox'
end

Version data entries

137 entries across 137 versions & 3 rubygems

Version Path
tramway-core-1.10.2.2 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.10.2.1 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.10.2 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.10.1 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.10 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-sport_school-1.2.8.1 config/initializers/simple_form.rb
tramway-conference-1.8.12.5 config/initializers/simple_form.rb
tramway-core-1.9.9.3 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.9.2 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.9.1 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.9 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.8.1 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.8 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.7 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-conference-1.8.12.4 config/initializers/simple_form.rb
tramway-core-1.9.6.1 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.6 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.5 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.4 lib/tramway/core/generators/templates/initializers/simple_form.rb
tramway-core-1.9.3 lib/tramway/core/generators/templates/initializers/simple_form.rb