Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #76 from hron84/fix-input-addons

Fix input addons
  • Loading branch information...
commit 4ae2f4141f6796a361c7652a6d64fdf658e1cd3f 2 parents ecccd31 + 119e472
@stouset authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/twitter_bootstrap_form_for/form_builder.rb
View
3  lib/twitter_bootstrap_form_for/form_builder.rb
@@ -94,9 +94,10 @@ def inline(label = nil, &block)
self.div_wrapper(attribute, :class => 'control-group') do
template.concat self.label(attribute, label) if label
template.concat template.content_tag(:div, :class => classes.join(' ')) {
+ block.call if block.present? and classes.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 classes.include?('input-append')
}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.