From 7574862cdb8f43e9e4334924dc360f3d20b2c5fd Mon Sep 17 00:00:00 2001 From: Azul Date: Sat, 26 Mar 2016 18:33:30 +0100 Subject: upgrade: horizontal forms now need column styles --- config/initializers/simple_form_bootstrap.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/initializers/simple_form_bootstrap.rb b/config/initializers/simple_form_bootstrap.rb index f693a4f..720174f 100644 --- a/config/initializers/simple_form_bootstrap.rb +++ b/config/initializers/simple_form_bootstrap.rb @@ -3,8 +3,8 @@ SimpleForm.setup do |config| config.wrappers :bootstrap, :tag => 'div', :class => 'form-group', :error_class => 'error' do |b| b.use :html5 b.use :placeholder - b.use :label - b.wrapper :tag => 'div', :class => 'controls' do |ba| + b.use :label, :class => 'col-sm-2' + b.wrapper :tag => 'div', :class => 'col-sm-10' 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' } -- cgit v1.2.3