|
|
|
@ -1,25 +1,24 @@
|
|
|
|
|
<h2>Change your password</h2> |
|
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> |
|
|
|
|
<div class="govuk-grid-row"> |
|
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
|
<h1 class="govuk-heading-l">Reset your password</h1> |
|
|
|
|
<%= render "devise/shared/error_messages", resource: resource %> |
|
|
|
|
<%= f.hidden_field :reset_password_token %> |
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
|
<%= f.label :password, "New password" %><br /> |
|
|
|
|
<div class="govuk-form-group"> |
|
|
|
|
<%= f.label :password, "New password", class: "govuk-label" %> |
|
|
|
|
<% if @minimum_password_length %> |
|
|
|
|
<em>(<%= @minimum_password_length %> characters minimum)</em><br /> |
|
|
|
|
<div class="govuk-hint">Your password must be at least 8 characters and hard to guess.</div> |
|
|
|
|
<% end %> |
|
|
|
|
<%= f.password_field :password, autofocus: true, autocomplete: "new-password" %> |
|
|
|
|
<%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "govuk-input" %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="field"> |
|
|
|
|
<%= f.label :password_confirmation, "Confirm new password" %><br /> |
|
|
|
|
<%= f.password_field :password_confirmation, autocomplete: "new-password" %> |
|
|
|
|
<div class="govuk-form-group"> |
|
|
|
|
<%= f.label :password_confirmation, "Confirm new password", class: "govuk-label" %> |
|
|
|
|
<%= f.password_field :password_confirmation, autocomplete: "new-password", class: "govuk-input" %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="actions"> |
|
|
|
|
<%= f.submit "Change my password" %> |
|
|
|
|
<%= f.submit "Reset password", class: "govuk-button" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<%= render "devise/shared/links" %> |
|
|
|
|