Sha256: 156c0a46a57db1a3144eb6a43795d275e152b73fa0771160e2b7124b144e801a

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 Bytes

Contents

<fieldset class="field-unit--nested">
  <legend><%= f.label field.attribute %></legend>
  <%= f.fields_for field.association_name do |nested_form| %>
      <%= render(
        partial: "fields/nested_has_many/fields",
        locals: {
          f: nested_form,
          field: field,
        },
      ) %>
  <% end %>

  <div>
    <%= link_to_add_association(
      I18n.t("administrate.fields.nested_has_many.add", resource: field.associated_class_name.titleize),
      f,
      field.association_name,
      class: 'button',
      partial: "fields/nested_has_many/fields",
      render_options: { locals: { field: field } },
    ) %>
  </div>
</fieldset>

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
administrate-field-nested_has_many-2.1.0 app/views/fields/nested_has_many/_form.html.erb
administrate-field-nested_has_many-2.0.0 app/views/fields/nested_has_many/_form.html.erb
administrate-field-nested_has_many-1.3.0 app/views/fields/nested_has_many/_form.html.erb
viniBaxter-spa-nested_has_many-2.0.0 app/views/fields/nested_has_many/_form.html.erb
administrate-field-nested_has_many-1.2.0 app/views/fields/nested_has_many/_form.html.erb
administrate-field-nested_has_many-1.1.0 app/views/fields/nested_has_many/_form.html.erb
administrate-field-nested_has_many-1.0.0 app/views/fields/nested_has_many/_form.html.erb