<%=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 "devise/shared/links" %>
<% if not resource.errors.empty? %>
<% end %>