Sha256: 7ef54716242d4d5bc878a7c29280f9426b9a4cccdf052802dbabf13d015ac222

Contents?: true

Size: 931 Bytes

Versions: 4

Compression:

Stored size: 931 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: nested_form.object.class, subclass: subclass, nested_locals: nested_locals }
  -# Add button
  - if add_button
    - if subclass
      = render partial: 'para/inputs/nested_many/add_with_subclasses', locals: { form: form, model: model, dom_identifier: dom_identifier, nested_locals: nested_locals, attribute_name: attribute_name, orderable: orderable }
    - else
      = render partial: 'para/inputs/nested_many/add', locals: { form: form, model: model, dom_identifier: dom_identifier, nested_locals: nested_locals, attribute_name: attribute_name, orderable: orderable }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
para-0.6.3 app/views/para/inputs/_nested_many.html.haml
para-0.6.2 app/views/para/inputs/_nested_many.html.haml
para-0.5.4 app/views/para/inputs/_nested_many.html.haml
para-0.5.3 app/views/para/inputs/_nested_many.html.haml