|
|
@ -7,23 +7,25 @@ |
|
|
|
) %> |
|
|
|
) %> |
|
|
|
<% end %> |
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
<%= form_for(current_user, as: :user, html: { method: :patch }) do |f| %> |
|
|
|
<%= form_for(@user, as: :user, html: { method: :patch }) do |f| %> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-row"> |
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
<div class="govuk-grid-column-two-thirds"> |
|
|
|
|
|
|
|
<%= f.govuk_error_summary %> |
|
|
|
|
|
|
|
|
|
|
|
<h1 class="govuk-heading-l"> |
|
|
|
<h1 class="govuk-heading-l"> |
|
|
|
<%= content_for(:title) %> |
|
|
|
<%= content_for(:title) %> |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :current_password, |
|
|
|
|
|
|
|
label: { text: "Current password" }, |
|
|
|
|
|
|
|
autocomplete: "current-password" |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :password, |
|
|
|
<%= 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: @minimum_password_length ? { text: "Your password must be at least #{@minimum_password_length} characters and hard to guess." } : nil, |
|
|
|
autocomplete: "new-password" |
|
|
|
autocomplete: "new-password" |
|
|
|
%> |
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_password_field :password_confirmation, |
|
|
|
|
|
|
|
label: { text: "Confirm new password" } |
|
|
|
|
|
|
|
%> |
|
|
|
|
|
|
|
|
|
|
|
<%= f.govuk_submit "Update" %> |
|
|
|
<%= f.govuk_submit "Update" %> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|