Sha256: 614833edcf48f030cc875c52f5030332eaf5d3c917a277737c12ac97ec1eb58c

Contents?: true

Size: 785 Bytes

Versions: 17

Compression:

Stored size: 785 Bytes

Contents

- nested_form = nil

-# Initialize an unredered form builder that will only be used to create the nested fields
-# by using the yielded block form builder argument.
-#
-# The form's object name is set through the provided :object_name param to ensure that
-# the form inputs are named correctly in the loading form.
-#
-# Builder options allow to customize the options passed to the form builder to customize
-# the rendered partials.
-#
- para_form_for(@object, @builder_options.merge(url: "")) do |form|
  - form.object_name = @object_name
  - nested_form = capture do
    = render(partial: find_partial_for(@model, :remote_nested_form), locals: { form: form, model: @model, object: @object, object_name: @object_name })
    = form.attributes_mappings_field_for(form)

= nested_form

Version data entries

17 entries across 17 versions & 1 rubygems

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