summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-03-26 18:33:30 +0100
committerAzul <azul@riseup.net>2016-05-02 08:31:17 -0300
commit7574862cdb8f43e9e4334924dc360f3d20b2c5fd (patch)
treee8f49af6267e7ae3f1b698ce9184c095039145e9 /config
parent70d8ffc40ef57efaf75cd51e0c1ca654dc37dd4c (diff)
upgrade: horizontal forms now need column styles
Diffstat (limited to 'config')
-rw-r--r--config/initializers/simple_form_bootstrap.rb4
1 files changed, 2 insertions, 2 deletions
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' }