Sha256: 31f7ebebce3d8f287266f02d1a63a692f59d9b9b987c0e4c3a57670932a2514a

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

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

  <%= yield %>

  <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.2.2 app/views/nested_fields/_nested_fieldset.html.erb
nested_fields-0.2.1 app/views/nested_fields/_nested_fieldset.html.erb