Sha256: b21f8b083775c121f2dc06c2ea83845bb66db2e432c9e863fb7112ef490a848b
Contents?: true
Size: 784 Bytes
Versions: 1
Compression:
Stored size: 784 Bytes
Contents
.nested-many-field{ class: ('orderable' if orderable) } .fields-list{ id: dom_identifier } = form.simple_fields_for attribute_name, resources, nested_attribute_name: attribute_name, orderable: orderable do |nested_form| = render partial: 'para/inputs/nested_many_container', locals: { form: nested_form, model: model } -# Add button - if add_button = link_to_add_association form, attribute_name, partial: 'para/inputs/nested_many_container', form_name: 'form', class: 'btn btn-primary', data: { :'association-insertion-node' => "##{ dom_identifier }", :'association-insertion-method' => 'append' }, render_options: { nested_attribute_name: attribute_name, orderable: orderable, locals: { model: model } } do %i.fa.fa-plus = t('para.form.nested.add')
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.4.0 | app/views/para/inputs/_nested_many.html.haml |