Sha256: 7f219841ea808e6217f66ad299946644ad34e9a82a0b6f0e5dd8df4f3de4efcd
Contents?: true
Size: 1.15 KB
Versions: 8
Compression:
Stored size: 1.15 KB
Contents
SimpleForm.setup do |config| config.wrappers :default, :tag => 'div', :class => [:clearfix ,:field_container], :hint_class => :field_with_hint, :error_class => :error do |wrapper| wrapper.use :label_input wrapper.use :hint, :wrap_with => { :tag => :span, :class => :hint } #b.use :error, :wrap_with => { :tag => :span, :class => :error } end config.wrappers :full_width, :tag => 'div', :class => [:clearfix ,:field_container, :full_width], :hint_class => :field_with_hint, :error_class => :error do |wrapper| wrapper.use :label_input wrapper.use :hint, :wrap_with => { :tag => :span, :class => :hint } #b.use :error, :wrap_with => { :tag => :span, :class => :error } end config.wrappers :non_persistence_fields, :tag => :div, :class => [:clearfix], :error_class => :error do |wrapper| wrapper.use :label end SimpleForm.form_class = "form-stacked" SimpleForm.browser_validations = false end
Version data entries
8 entries across 8 versions & 1 rubygems