Sha256: b9eca19789f1486c4e93132af8c4265a442ba8d76c86d0c0c714b8991591efc4

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

<% if local_assigns[:positioned_by] %>
  <fieldset class="nested_fieldset positioned <%= association %>" data-positioned-by="<%= positioned_by %>">
<% else %>
  <fieldset class="nested_fieldset <%= association %>">
<% end %>
  <legend><%= local_assigns[:legend] || association.to_s.titleize %></legend>

  <%= yield add_url %>

  <a href="#" class="add_nested_fields" data-url="<%= add_url %>">Add</a>

  <%= f.fields_for association, :builder => f.class do |nested_f| %>
    <%= render 'nested_fields/block', :f => nested_f, :nested_partial => nested_partial %>
  <% end %>
</fieldset>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nested_fields-0.4.0 app/views/nested_fields/_nested_fieldset.html.erb
nested_fields-0.3.0 app/views/nested_fields/_nested_fieldset.html.erb