app/views/para/inputs/nested_many/_container.html.haml in para-0.6.9 vs app/views/para/inputs/nested_many/_container.html.haml in para-0.7.0
- old
+ new
@@ -1,22 +1,21 @@
- nested_locals ||= {}
-.panel.panel-default.form-fields
+.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
- %span.caret
+ %i.fa.fa-angle-up
= form.remove_association_button
- .clearfix
+ .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)
- .panel-body.form-inputs.collapse{ id: form.nested_resource_dom_id }
- = 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)
+ -# 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