Sha256: 05de6c5eae8f8e1e56125df6a1124bc689b1412de84fa06d5669a74c2d224c6a
Contents?: true
Size: 920 Bytes
Versions: 20
Compression:
Stored size: 920 Bytes
Contents
SimpleForm.setup do |config| config.wrappers :inline, tag: :div, class: 'form-group', error_class: 'has-error', label_html: { class: 'sr-only' } do |b| b.use :html5 b.use :min_max b.use :placeholder b.optional :pattern b.optional :readonly b.use :label b.use :input end config.wrappers :inline_checkbox, tag: :div, class: "form-group", error_class: "has-error" do |b| b.use :html5 b.optional :readonly b.wrapper tag: :div, class: 'checkbox' do |c| c.wrapper tag: :label do |a| a.use :input a.use :label_text end end end config.wrappers :inline_radio, tag: :div, class: "form-group", error_class: "has-error" do |b| b.use :html5 b.optional :readonly b.wrapper tag: :div, class: 'radio' do |c| c.wrapper tag: :label do |a| a.use :input a.use :label_text end end end end
Version data entries
20 entries across 20 versions & 1 rubygems