<% content_for :before_content do %> <%= govuk_back_link( text: 'Back', href: :back, ) %> <% end %> <%= form_for(resource, as: resource_name, url: user_registration_path(), html: { method: :patch }) do |f| %>

Change your password

<%= f.label :current_password, class: "govuk-label" %> <%= f.password_field :current_password, autocomplete: "current-password", class: "govuk-input" %>
<%= f.label :password, class: "govuk-label" %>
Your password must be at least 8 characters and hard to guess.
<%= f.password_field :password, autocomplete: "new-password", class: "govuk-input" %>
<%= f.submit "Update", class: "govuk-button" %>
<% end %>