diff options
author | Azul <azul@riseup.net> | 2016-03-26 18:22:22 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-02 08:31:17 -0300 |
commit | 70d8ffc40ef57efaf75cd51e0c1ca654dc37dd4c (patch) | |
tree | aa738eace66311b4eea9f9cc4abb1713793a218c /config | |
parent | 65f67e1829666a65a3b354d4d95f9d38aa15a81e (diff) |
upgrade: bootstrap control-group -> form-group
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/simple_form_bootstrap.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/initializers/simple_form_bootstrap.rb b/config/initializers/simple_form_bootstrap.rb index c949f5e..f693a4f 100644 --- a/config/initializers/simple_form_bootstrap.rb +++ b/config/initializers/simple_form_bootstrap.rb @@ -1,6 +1,6 @@ # Use this setup block to configure all options available in SimpleForm. SimpleForm.setup do |config| - config.wrappers :bootstrap, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b| + config.wrappers :bootstrap, :tag => 'div', :class => 'form-group', :error_class => 'error' do |b| b.use :html5 b.use :placeholder b.use :label @@ -11,7 +11,7 @@ SimpleForm.setup do |config| end end - config.wrappers :prepend, :tag => 'div', :class => "control-group", :error_class => 'error' do |b| + config.wrappers :prepend, :tag => 'div', :class => "form-group", :error_class => 'error' do |b| b.use :html5 b.use :placeholder b.use :label @@ -24,7 +24,7 @@ SimpleForm.setup do |config| end end - config.wrappers :append, :tag => 'div', :class => "control-group", :error_class => 'error' do |b| + config.wrappers :append, :tag => 'div', :class => "form-group", :error_class => 'error' do |b| b.use :html5 b.use :placeholder b.use :label @@ -38,7 +38,7 @@ SimpleForm.setup do |config| end # - # when you don't want any bootstrap "control-group" or "controls" wrappers. + # when you don't want any bootstrap "form-group" or "controls" wrappers. # config.wrappers :none, :tag => 'div', :error_class => 'error' do |b| b.use :html5 |