Sha256: 3fe2cd549723d211496d92ef06bbded590fce0297f85b2add8c7228c9a28df26

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

<div class="controls col-sm-10" data-nestedone="true">
  <ul class="nav collapse"></ul>
  <div class="btn-group">
    <a class="<%= (field.active? ? 'active' : '') %> btn btn-info toggler" data-bs-target="<%= form.jquery_namespace(field) %> .collapse" data-bs-toggle="collapse" role="button">
      <i class="fas"></i>
    </a>
    <% unless field.nested_form[:update_only] || !field.inline_add %>
      <%= form.link_to_add "<i class=\"fas fa-plus\"></i> #{wording_for(:link, :new, field.associated_model_config.abstract_model)}".html_safe, field.name, { class: 'btn btn-info', :'data-add-label' => "<i class=\"fas fa-plus\"></i> #{wording_for(:link, :new, field.associated_model_config.abstract_model)}".gsub("\n", "") } %>
    <% end %>
  </div>
  <%= form.errors_for(field) %>
  <%= form.help_for(field) %>
</div>
<div class="tab-content collapse">
  <%= form.fields_for field.name do |nested_form| %>
    <% if field.nested_form[:allow_destroy] %>
      <%= nested_form.link_to_remove '<span class="btn btn-danger"><i class="fas fa-trash"></i></span>'.html_safe %>
    <% end %>
    <%= nested_form.generate({action: :nested, model_config: field.associated_model_config, nested_in: field }) %>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_admin-3.1.4 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.3 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.2 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.1 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.0 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.0.rc2 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.0.rc app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.1.0.beta app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.0.0 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.0.0.rc4 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.0.0.rc3 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.0.0.rc2 app/views/rails_admin/main/_form_nested_one.html.erb
rails_admin-3.0.0.rc app/views/rails_admin/main/_form_nested_one.html.erb