Sha256: a6d8a760c211e63e0637311605b68278197437dfe6038661f2ffb33bec2f0896

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 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: find_partial_for(model, :nested_many_container, partial_dir: 'inputs'), locals: { form: nested_form, model: model }

  -# Add button
  - if add_button
    = link_to_add_association form, attribute_name, partial: find_partial_for(model, :nested_many_container, partial_dir: 'inputs'), 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.5.0 app/views/para/inputs/_nested_many.html.haml