<%= fields_for "sections[#{blank_section.to_param}]", blank_section do |section_form| %>
<%= render "section", form: section_form, id: tabs_id_for_section(blank_section) %>
<% end %>
<% @form.sections.each do |section| %>
<%= fields_for "sections[]", section do |section_form| %>
<%= render "section", form: section_form, id: tabs_id_for_section(section) %>
<% end %>
<% end %>
<%= javascript_include_tag "decidim/plans/admin/sections" %>