<%= "#{ t :field_group }".pluralize.capitalize %>

<%# - - - - - - - - - - - - %> <%# FORM ITEM %> <%# - - - - - - - - - - - - %> <%= f.simple_fields_for :field_groups do |ff| %>
<%= ff.input :structure_id, as: :hidden %> <%= ff.input :id, as: :hidden %> <%# - - - - - - - - - - - - %> <%# EDIT/REMOVE BUTTONS %> <%# - - - - - - - - - - - - %> <% unless ff.object.slug.nil? %> <% end %> <%# - - - - - - - - - - - - %> <%# NAME %> <%# - - - - - - - - - - - - %>
<%= "#{ t :name }".capitalize %>
<%= ff.input :name %> <%# - - - - - - - - - - - - %> <%# SLUG %> <%# - - - - - - - - - - - - %> <% unless ff.object.slug.nil? %>
<%= "#{ t :slug }".capitalize %>
<%= ff.input :slug, as: :string, input_html: { class: "form-item--input" } %> <% end %>
<% end %> <%# - - - - - - - - - - - - %> <%# FORM NEW ITEM %> <%# - - - - - - - - - - - - %> <%= f.simple_fields_for 'new_field_groups[]', @structure.field_groups.build() do |ff| %>
<%= ff.input :structure_id, as: :hidden %> <%= ff.input :id, as: :hidden %>
<%= "#{ t :name }".capitalize %>
<%= ff.input :name %>
<% end %> <%# - - - - - - - - - - - - - - %> <%# 'ADD NEW FORM ITEM' BUTTON %> <%# - - - - - - - - - - - - - - %> <% if section.slug.nil? %>
<%= t( :hint_create_parent_before_child, arg1: "#{ t :structure }", arg2: "#{ t :field_group }" ).capitalize %>
<% else %> <%= "#{ t :new }".capitalize %> <%= t :field_group %> <% end %>