Permalink
Browse files

Fixing input addons

  • Loading branch information...
hron84 committed Mar 18, 2013
1 parent b581853 commit f78246f17c6fea633946e5a37465fb1ed71982d0
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/twitter_bootstrap_form_for/form_builder.rb
@@ -94,9 +94,10 @@ def inline(label = nil, &block)
self.div_wrapper(attribute) do
template.concat self.label(attribute, label) if label
template.concat template.content_tag(:div, :class => classes.join(' ')) {
+ block.call if block.present? and classess.include?('input-prepend')
template.concat super(attribute, *(args << options))
template.concat error_span(attribute)
- block.call if block.present?
+ block.call if block.present? and classess.include?('input-append')
}
end
end

0 comments on commit f78246f

Please sign in to comment.