Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #43 from jisk/errors_inside_div
Browse files Browse the repository at this point in the history
Move help-inline error sentences inside their control's div
  • Loading branch information
sodabrew committed Feb 2, 2013
2 parents d02ec34 + da6d1f3 commit 86601d9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/formtastic-bootstrap/inputs/base/wrapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ def bootstrap_wrapping(&block)

def control_group_wrapping(&block)
template.content_tag(:div,
[template.capture(&block), error_html].join("\n").html_safe,
template.capture(&block).html_safe,
wrapper_html_options
)
end

def controls_wrapping(&block)
template.content_tag(:div, template.capture(&block).html_safe, controls_wrapper_html_options)
template.content_tag(:div,
[template.capture(&block), error_html].join("\n").html_safe,
controls_wrapper_html_options
)
end

def controls_wrapper_html_options
Expand Down

0 comments on commit 86601d9

Please sign in to comment.