|
|
|
@ -1,15 +1,23 @@
|
|
|
|
|
<h2>Forgot your password?</h2> |
|
|
|
|
<% 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 %> |
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
|
<%= f.label :email %><br /> |
|
|
|
|
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> |
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
<div class="actions"> |
|
|
|
|
<%= f.submit "Send me reset password instructions" %> |
|
|
|
|
<%= f.submit "Send email", class: "govuk-button" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|