<h2>Resend confirmation instructions</h2>

<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
  <%= render "devise/shared/error_messages", resource: resource %>

  <%= f.govuk_email_field :email,
    label: { text: "Email address" },
    autocomplete: "email",
    spellcheck: "false",
    value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email)
  %>

  <%= f.govuk_submit "Resend confirmation instructions" %>
<% end %>

<%= render "devise/shared/links" %>