|
|
@ -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| %> |
|
|
|
<%= 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 %> |
|
|
|
<%= render "devise/shared/error_messages", resource: resource %> |
|
|
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
<p class="govuk-body">Enter the email address you used to create your account.</p> |
|
|
|
<%= f.label :email %><br /> |
|
|
|
<p class="govuk-body">We’ll email you a link to reset your password. This link will expire in 3 hours.</p> |
|
|
|
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> |
|
|
|
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
|
|
<div class="actions"> |
|
|
|
<%= f.submit "Send email", class: "govuk-button" %> |
|
|
|
<%= f.submit "Send me reset password instructions" %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|