|
|
|
<% content_for :before_content do %>
|
|
|
|
<%= link_to 'Back', :back, class: "govuk-back-link" %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
|
|
|
<div class="govuk-grid-row">
|
|
|
|
<div class="govuk-grid-column-two-thirds">
|
|
|
|
<h1 class="govuk-heading-l">Reset password</h1>
|
|
|
|
<%= render "devise/shared/error_messages", resource: resource %>
|
|
|
|
|
|
|
|
<p class="govuk-body">Enter the email address you used to create your account.</p>
|
|
|
|
<p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 3 hours.</p>
|
|
|
|
|
|
|
|
<div class="govuk-form-group">
|
|
|
|
<%= f.label :email, "Email address", class: "govuk-label" %>
|
|
|
|
<%= f.email_field :email, autofocus: true, autocomplete: "email", class: "govuk-input" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= f.submit "Send email", class: "govuk-button" %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= render "devise/shared/links" %>
|