Sha256: 2837e1b8072010aac143cc0b39569d6bba676090af5677a63923658caf5950ef
Contents?: true
Size: 623 Bytes
Versions: 12
Compression:
Stored size: 623 Bytes
Contents
require 'simple_form' SimpleForm.setup do |config| config.button_class = 'btn btn-primary' config.boolean_label_class = nil config.wrappers :horizontal_form, tag: 'div', class: 'row space-bottom-2', error_class: 'invalid' do |b| b.use :html5 b.use :placeholder b.use :label #, class: 'col-3' b.wrapper tag: 'div', class: 'input' do |ba| ba.use :hint, wrap_with: { tag: 'div', class: 'text-muted hint' } ba.use :input, wrap_with: { error_class: 'invalid' } ba.use :error, wrap_with: { tag: 'label', class: 'error' } end end config.default_wrapper = :horizontal_form end
Version data entries
12 entries across 12 versions & 1 rubygems