Sha256: 2fa71e934b946f1a15c7fa3c81395ec0dedbc69c403f1e7cf6d263e1b0998a58

Contents?: true

Size: 971 Bytes

Versions: 19

Compression:

Stored size: 971 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, :fields), 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

19 entries across 19 versions & 1 rubygems

Version Path
para-0.9.0 app/views/para/inputs/_nested_one.html.haml
para-0.8.15 app/views/para/inputs/_nested_one.html.haml
para-0.8.14 app/views/para/inputs/_nested_one.html.haml
para-0.8.13 app/views/para/inputs/_nested_one.html.haml
para-0.8.12 app/views/para/inputs/_nested_one.html.haml
para-0.8.11 app/views/para/inputs/_nested_one.html.haml
para-0.8.10 app/views/para/inputs/_nested_one.html.haml
para-0.8.9 app/views/para/inputs/_nested_one.html.haml
para-0.8.8 app/views/para/inputs/_nested_one.html.haml
para-0.8.7 app/views/para/inputs/_nested_one.html.haml
para-0.8.5 app/views/para/inputs/_nested_one.html.haml
para-0.8.3.3 app/views/para/inputs/_nested_one.html.haml
para-0.8.3.2 app/views/para/inputs/_nested_one.html.haml
para-0.8.3.1 app/views/para/inputs/_nested_one.html.haml
para-0.8.3 app/views/para/inputs/_nested_one.html.haml
para-0.8.2.3 app/views/para/inputs/_nested_one.html.haml
para-0.8.2.2 app/views/para/inputs/_nested_one.html.haml
para-0.8.2.1 app/views/para/inputs/_nested_one.html.haml
para-0.8.2 app/views/para/inputs/_nested_one.html.haml