lib/engine.rb in app_frame-0.5.8 vs lib/engine.rb in app_frame-0.6.1

- old
+ new

@@ -95,9 +95,19 @@ input.use :hint, :wrap_with => { :tag => 'span', :class => 'help-block' } input.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' } end end + config.wrappers :nested, :tag => 'div', :class => 'control-group', :error_class => 'error' do |b| + b.use :html5 + b.use :placeholder + b.wrapper :tag => 'div', :class => 'controls' do |ba| + ba.use :label_input + ba.use :error, :wrap_with => { :tag => 'span', :class => 'help-inline' } + ba.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' } + end + 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, # buttons and other elements. config.default_wrapper = :bootstrap \ No newline at end of file