<% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: :back, ) %> <% end %> <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>

Reset password

<%= render "devise/shared/error_messages", resource: resource %>

Enter the email address you used to create your account.

We’ll email you a link to reset your password. This link will expire in 3 hours.

<%= f.govuk_email_field :email, label: { text: "Email address" }, autocomplete: "email" %> <%= f.govuk_submit "Send email" %>
<% end %> <%= render "devise/shared/links" %>