Sha256: 6845db9ef000dd13d83cd9fdfbbf4a5bd24ac981e1109d8b6228e2b7c6f57e63

Contents?: true

Size: 524 Bytes

Versions: 7

Compression:

Stored size: 524 Bytes

Contents

<%= f.label a, class: 'form-control-label' %>

<%= f.fields_for a do |association_model| %>
  <%= render 'slash_admin/fields/has_many_row', f: association_model, model_ref: a.to_sym %>
<% end %>

<div class="links">
  <%= link_to_add_association f, a,
  class: 'btn btn-success btn-sm btn-add-assoc',
  render_options: {locals: {model_ref: a}},
  partial: 'slash_admin/fields/has_many_row' do %>
    <i class="icon-plus"></i> Ajouter un(e) <%= @model_class.human_attribute_name(a).singularize.downcase %>
  <% end %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
slash_admin-1.0.5 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.0.4 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.0.3 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.0.2 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.0.1 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.0 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-0.1.0 app/views/slash_admin/fields/_nested_has_many.html.erb