<%= contact.hidden_field :id %>
<%= text_field_tag "#{contact.object_name}[email]", contact.object.email, class: 'exhibit-contact form-control', id: "exhibit_contact_email_#{contact.index}", 'aria-label': t('.email_input_aria_label', index: contact.index + 1) %> <% if contact.object.errors[:email].present? %> <%=contact.object.errors[:email].join(", ".html_safe) %> <% end %>

<% if contact.object.id %> <%= link_to exhibit_contact_email_path(exhibit_id: exhibit.id, id: contact.object.id), class: 'contact-email-delete btn btn-sm btn-danger', method: :delete, data: { confirm: t('.email_delete_confirmation'), remote: true } do %> <%= t('.email_delete_button') %> <% end %> <% end %> <%= render partial: 'confirmation_status', locals: {contact_email: contact.object} unless contact.object.new_record? %>