app/views/para/inputs/nested_one/_container.html.haml in para-0.8.2 vs app/views/para/inputs/nested_one/_container.html.haml in para-0.8.2.1
- old
+ new
@@ -1,9 +1,9 @@
.panel.panel-default.form-fields
.panel-heading
%h3.panel-title
- = link_to "##{ form.nested_resource_dom_id }", class: "nested-input-title collapsed#{ (' has-error' if form.object.errors.any?) }", data: { toggle: 'collapse', :'open-on-insert' => true } do
- = form.nested_resource_name
+ = link_to "##{ nested_form.nested_resource_dom_id }", class: "nested-input-title collapsed#{ (' has-error' if nested_form.object.errors.any?) }", data: { toggle: 'collapse', :'open-on-insert' => true } do
+ = nested_form.nested_resource_name
%i.fa.fa-angle-up
- .panel-body.panel-collapse.form-inputs.collapse{ id: form.nested_resource_dom_id }
- = render partial: find_partial_for(model, :fields), locals: { form: form, parent: form.object }.merge(nested_locals)
+ .panel-body.panel-collapse.form-inputs.collapse{ id: nested_form.nested_resource_dom_id }
+ = render partial: find_partial_for(model, :fields), locals: { form: nested_form, parent: nested_form.object }.merge(nested_locals)
\ No newline at end of file