Skip to content

Commit

Permalink
default form-inline class applied to parent content div on date selec…
Browse files Browse the repository at this point in the history
…t helpers
  • Loading branch information
lancecarlson authored and lcreid committed Jul 20, 2018
1 parent 78fd6f9 commit 3c4b99a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bootstrap_form/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ def initialize(object_name, object, template, options)

define_method(with_method_name) do |name, options = {}, html_options = {}|
form_group_builder(name, options, html_options) do
content_tag(:div, class: control_specific_class(method_name)) do
html_class = control_specific_class(method_name)
html_class = "#{html_class} form-inline" unless options[:skip_inline]
content_tag(:div, class: html_class) do
input_with_error(name) do
send(without_method_name, name, options, html_options)
end
Expand Down

0 comments on commit 3c4b99a

Please sign in to comment.