Skip to content

Commit 042cb66

Browse files
author
Nikolay Moskvin
committed
Fixed form layouts
1 parent bf8b84f commit 042cb66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/rails_admin/form_builder.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def field_wrapper_for(field, nested_in)
3434
if field.label
3535
# do not show nested field if the target is the origin
3636
unless nested_field_association?(field, nested_in)
37-
@template.content_tag(:div, class: "control-group #{field.type_css_class} #{field.css_class} #{'error' if field.errors.present?}", id: "#{dom_id(field)}_field") do
37+
@template.content_tag(:div, class: "form-group control-group #{field.type_css_class} #{field.css_class} #{'error' if field.errors.present?}", id: "#{dom_id(field)}_field") do
3838
label(field.method_name, capitalize_first_letter(field.label), class: 'col-sm-2 control-label') +
3939
(field.nested_form ? field_for(field) : input_for(field))
4040
end

0 commit comments

Comments
 (0)