Sha256: a307b7e141187dd3be30baec8a276de0182ccb03f1cc89121a2dd560aa47c32d

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

<div class="container-fluid mt-5">
<!-- <div class="row"> -->
  <<%= fieldset %>
      class="row field-unit--nested field-unit--nested_<%= field.attribute %>"
      data="field-unit--nested_<%= field.attribute %>">
    <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 class='btn-fixed_<%= field.attribute %> '>
      <%= link_to_add_association(
      t("administrate.fields.nested_has_many.add.#{field.association_name}").html_safe,
        # I18n.t("administrate.fields.nested_has_many.add", resource: t("administrate.helpers.model.#{field.association_name}")).html_safe,
        f,
        field.association_name,
        class: 'btn btn-outline-primary mb-2',
        partial: "fields/nested_has_many/fields",
        render_options: { locals: { field: field} },
      ) %>
    </div>
  </<%= fieldset %>>
</div>
<!-- </div> -->

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
viniBaxter-spa-nested_has_many-300.0.6 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-300.0.5 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-300.0.4 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-300.0.2 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-300.0.1 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-5.4.0 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-5.0.1 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-5.0.0 app/views/fields/nested_has_many/_fieldset.html.erb
viniBaxter-spa-nested_has_many-4.0.0 app/views/fields/nested_has_many/_fieldset.html.erb