I am trying to set up a custom wrapper to use a defined label class different from the default one:
config.wrappers :half, :tag => 'div', :class => 'form-group', :error_class => 'error' do |b|
b.use :html5
b.use :placeholder
b.use :label, class: 'my custom class'
b.wrapper :tag => 'div', :class => 'col-lg-6' do |ba|
ba.use :input
ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' }
ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
end
end
But looks like nothing works. Label will always be generated using the default defined class.
Also passing the class from the input form append the classes and does not override them.
Any suggestion?