Sha256: 5dce649db5eb617e4cc851cfcb5e9786a4d2fa0f26f7ffc69ef419d30880e25c

Contents?: true

Size: 932 Bytes

Versions: 12

Compression:

Stored size: 932 Bytes

Contents

.nested-one-field
  = form.simple_fields_for attribute_name, resource, nested_attribute_name: attribute_name do |nested_form|
    - if defined?(collapsible) && collapsible
      .panel.panel-default.form-fields
        .panel-heading
          %h3.panel-title
            = link_to "##{ nested_form.nested_resource_dom_id }", class: "nested-input-title collapsed#{ (' has-error' if nested_form.object.errors.any?) }", data: { toggle: 'collapse', :'open-on-insert' => true } do
              = nested_form.nested_resource_name
              %i.fa.fa-angle-up

        .panel-body.panel-collapse.form-inputs.collapse{ id: nested_form.nested_resource_dom_id }
          = render partial: find_partial_for(model, :fields), locals: { form: nested_form, parent: form.object }.merge(nested_locals)
    - else
      = render partial: find_partial_for(model, :fields), locals: { form: nested_form, parent: form.object }.merge(nested_locals)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
para-0.8.1 app/views/para/inputs/_nested_one.html.haml
para-0.8.0 app/views/para/inputs/_nested_one.html.haml
para-0.7.4.p1 app/views/para/inputs/_nested_one.html.haml
para-0.7.4 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p6 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p5 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p4 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p3 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p2 app/views/para/inputs/_nested_one.html.haml
para-0.7.3.p1 app/views/para/inputs/_nested_one.html.haml
para-0.7.3 app/views/para/inputs/_nested_one.html.haml
para-0.7.2 app/views/para/inputs/_nested_one.html.haml