<% javascript 'backend/sortable' %>
<%= t 'b.msg.form_fields.index_header_html', form: form.description %> <% if form.fields.any? %>
<%= link_to icon(:plus, t('b.msg.form_fields.add')), new_backend_form_field_path(form), class: 'btn btn-primary btn-sm' %>
<% end %>
<% if form.fields.any? %> <% form.fields.each do |f| %> <% end %>
<%= t('b.name') %>  
<%= f.identifier %> <%= link_to icon(:pencil_square_o), edit_backend_form_field_path(form, f) %> <%= link_to icon(:trash), backend_form_field_path(form, f), method: :delete, data: { confirm: t('b.msg.confirm') }, title: t('b.delete') %>
<% else %>

<%= t('b.msg.form_fields.explanation') %> <%= link_to t('b.msg.form_fields.add_first'), new_backend_form_field_path(form) %>.

<% end %>