<%=t "devise.confirmations.new.title" %>
<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
<%= f.label :email %>
<%= f.email_field :email, autofocus: true, class: "form-control", value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
<%= f.submit t("devise.confirmations.new.submit"), class: "btn btn-primary" %>
<% end %>
<%= render "users/shared/links" %>
<% if resource.errors.present? %>
<% form_errors = {} %>
<% resource.errors.each do |err, msg| %>
<% form_errors[err] = (msg == "not found") ? ["Email not found"] : [msg] %>
<% end %>