<% content_for :title, "Change your password" %> <% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: :back, ) %> <% end %> <%= form_for(@user, as: :user, html: { method: :patch }) do |f| %>
<%= f.govuk_error_summary %>

<%= content_for(:title) %>

<%= 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, autocomplete: "new-password" %> <%= f.govuk_password_field :password_confirmation, label: { text: "Confirm new password" } %> <%= f.govuk_submit "Update" %>
<% end %>