diff options
author | elijah <elijah@riseup.net> | 2013-06-19 00:33:19 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-07-04 04:00:47 -0700 |
commit | 8393058ac15d72be702a6de481d6129aed4bbef3 (patch) | |
tree | 79af217151c3622058b79b2511c55c1b2babb3da /core | |
parent | e58fd0550b4a29fac9d52dc8a78d04333ccc8c06 (diff) |
new ui for tickets
Diffstat (limited to 'core')
-rw-r--r-- | core/config/initializers/simple_form_bootstrap.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/config/initializers/simple_form_bootstrap.rb b/core/config/initializers/simple_form_bootstrap.rb index 1a22967..c949f5e 100644 --- a/core/config/initializers/simple_form_bootstrap.rb +++ b/core/config/initializers/simple_form_bootstrap.rb @@ -37,6 +37,18 @@ SimpleForm.setup do |config| end end + # + # when you don't want any bootstrap "control-group" or "controls" wrappers. + # + config.wrappers :none, :tag => 'div', :error_class => 'error' do |b| + b.use :html5 + b.use :placeholder + b.use :label + b.use :input + b.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' } + b.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' } + end + # Wrappers for forms and inputs using the Twitter Bootstrap toolkit. # Check the Bootstrap docs (http://twitter.github.com/bootstrap) # to learn about the different styles for forms and inputs, |