- nested_locals ||= {} .panel.panel-default.form-fields{ class: ('nested-many-inset-panel' if inset), data: { :'persisted' => form.object.persisted? } } .panel-heading = form.reorder_anchor %h3.panel-title = link_to "##{ form.nested_resource_dom_id }", class: 'collapsed', data: { toggle: 'collapse', :'open-on-insert' => true } do = form.nested_resource_name %i.fa.fa-angle-up = form.remove_association_button .panel-collapse.form-inputs.collapse{ id: form.nested_resource_dom_id, class: ('in' if inset) } .panel-body = render partial: find_partial_for(model, :fields), locals: { form: form }.merge(nested_locals) -# Add inheritance column field if needed = form.hidden_field form.object.class.inheritance_column if form.object.class.column_names.include?(form.object.class.inheritance_column) .clearfix