|
|
|
|
@ -1,9 +1,5 @@
|
|
|
|
|
<% content_for :title, @confirmation ? I18n.t("user.create_password") : I18n.t("user.reset_password") %> |
|
|
|
|
|
|
|
|
|
<% content_for :before_content do %> |
|
|
|
|
<%= govuk_back_link(href: :back) %> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %> |
|
|
|
|
<%= f.hidden_field :reset_password_token %> |
|
|
|
|
<div class="govuk-grid-row"> |
|
|
|
|
@ -16,12 +12,14 @@
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :password, |
|
|
|
|
label: { text: "New password" }, |
|
|
|
|
hint: @minimum_password_length ? { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." } : nil, |
|
|
|
|
hint: { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." }, |
|
|
|
|
autocomplete: "new-password" %> |
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :password_confirmation, |
|
|
|
|
label: { text: "Confirm new password" } %> |
|
|
|
|
|
|
|
|
|
<%= f.hidden_field :confirmation, value: @confirmation %> |
|
|
|
|
|
|
|
|
|
<%= f.govuk_submit "Update" %> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|