Sha256: 6382e6b1adb83491a5e7b2964b4d47d2e9d18ada236912fea21c7deff3d82689

Contents?: true

Size: 573 Bytes

Versions: 25

Compression:

Stored size: 573 Bytes

Contents

<%= f.label a, class: 'form-control-label' %>
<%= render 'slash_admin/shared/tooltip', a: a %>

<%= 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

25 entries across 25 versions & 1 rubygems

Version Path
slash_admin-1.5.11 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.10 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.9 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.8 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.7 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.6 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.5 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.4 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.3 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.2 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5.1 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.5 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.4.1 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.4 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.5 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.4 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.3 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.2 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.1 app/views/slash_admin/fields/_nested_has_many.html.erb
slash_admin-1.3.0 app/views/slash_admin/fields/_nested_has_many.html.erb