<%= "#{ t :field_group }".pluralize %>
<%= f.simple_fields_for :field_groups, f.object.field_groups.order( :position, :name ) do |ff| %>
<%= ff.input :structure_id, as: :hidden %> <%= ff.input :id, as: :hidden %>
<% if ff.object.slug.nil? %> <%= t('binda.delete').capitalize %>

<%= t('binda.new_item_in_repeater', { arg1: '' })%>

<% else %> <%= t('binda.edit') %> <%= t('binda.delete').capitalize %>

<%= ff.object.name %>

<% end %>
<%= ff.input :name, label: "#{ t :name }".capitalize, wrapper_html: { class: "form-item--half-size" } %> <%= ff.input :slug, wrapper_html: { class: "form-item--half-size" } %>
<% end %> <%= f.simple_fields_for 'new_field_groups[]', @structure.field_groups.build() do |ff| %>
<%= t('binda.delete').capitalize %>

<%= t('binda.new_item_in_repeater', { arg1: '' })%>

<%= ff.input :structure_id, as: :hidden %> <%= ff.input :id, as: :hidden %> <%= ff.input :name, label: "#{ t :name }".capitalize, wrapper_html: { class: "form-item--half-size" } %> <%= ff.input :slug, wrapper_html: { class: "form-item--half-size" } %>
<% end %> <% if section.slug.nil? %>

<%= t( :hint_create_parent_before_child, arg1: "#{ t :structure }", arg2: "#{ t :field_group }" ).capitalize %>

<% else %>
<%= t('binda.new') %> <%= t('binda.field_group.singular') %>
<% end %>