<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>

Reset your password

<%= render "devise/shared/error_messages", resource: resource %> <%= f.hidden_field :reset_password_token %>
<%= f.label :password, "New password", class: "govuk-label" %> <% if @minimum_password_length %>
Your password must be at least 8 characters and hard to guess.
<% end %> <%= f.password_field :password, autofocus: true, autocomplete: "new-password", class: "govuk-input" %>
<%= f.submit "Reset password", class: "govuk-button" %>
<% end %>