Skip to content

Instantly share code, notes, and snippets.

@felipeorlando
Last active September 28, 2016 18:08
Show Gist options
  • Save felipeorlando/5a2e071495593a67db5a129d87393b37 to your computer and use it in GitHub Desktop.
Save felipeorlando/5a2e071495593a67db5a129d87393b37 to your computer and use it in GitHub Desktop.
<div role="tabpanel" class="tab-pane <%= index == 0 ? 'active' : ''%>" id="locale_<%= locale.acronym %>">
<%= form.fields_for(field, item) do |has_many_form| %>
<%= has_many_form.hidden_field :locale_id %>
<% has_many_model.my_admin.fieldsets.each do |has_many_fieldset| %>
<%= content_tag(:fieldset) do %>
<%= content_tag(:legend, fieldset_title(application, has_many_model, has_many_fieldset[:name])) if has_many_fieldset.has_key? :name %>
<% has_many_fieldset[:fields].each do |has_many_field| %>
<%= edit_field_struct(application, has_many_model, has_many_field, item, has_many_form ) %>
<% end %>
<% end %>
<% end %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment