Sha256: 3197918da72a678b2f0284328d887f3a57b62e27ae14ede5072d4eaeffde8f08

Contents?: true

Size: 996 Bytes

Versions: 16

Compression:

Stored size: 996 Bytes

Contents

.nested-one-field
  = form.simple_fields_for attribute_name, resource, nested_attribute_name: attribute_name do |nested_form|
    - if defined?(collapsible) && collapsible
      - if resource
        .nested-one-container{ id: dom_identifier }
          = render partial: find_partial_for(model, 'nested_one/container', partial_dir: 'inputs'), locals: { nested_form: nested_form, form: form, model: nested_form.object.class, subclass: subclass, nested_locals: nested_locals }

    - else
      = render partial: find_partial_for(model, form.nested_fields_partial_name), locals: { form: nested_form, parent: form.object }.merge(nested_locals)

  - if defined?(subclass) && subclass
    = render partial: 'para/inputs/nested_one/add_with_subclasses', locals: { form: form, model: model, dom_identifier: dom_identifier, nested_locals: nested_locals, attribute_name: attribute_name, subclasses: subclasses, add_button_label: add_button_label, add_button_class: add_button_class, subclass: subclass }

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
para-0.12.4 app/views/para/inputs/_nested_one.html.haml
para-0.12.3 app/views/para/inputs/_nested_one.html.haml
para-0.12.2 app/views/para/inputs/_nested_one.html.haml
para-0.12.1 app/views/para/inputs/_nested_one.html.haml
para-0.12.0 app/views/para/inputs/_nested_one.html.haml
para-0.11.4 app/views/para/inputs/_nested_one.html.haml
para-0.11.3 app/views/para/inputs/_nested_one.html.haml
para-0.11.2 app/views/para/inputs/_nested_one.html.haml
para-0.11.1 app/views/para/inputs/_nested_one.html.haml
para-0.11.0 app/views/para/inputs/_nested_one.html.haml
para-0.10.0 app/views/para/inputs/_nested_one.html.haml
para-0.9.4 app/views/para/inputs/_nested_one.html.haml
para-0.9.3.3 app/views/para/inputs/_nested_one.html.haml
para-0.9.3.2 app/views/para/inputs/_nested_one.html.haml
para-0.9.3.1 app/views/para/inputs/_nested_one.html.haml
para-0.9.2 app/views/para/inputs/_nested_one.html.haml