<%= 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.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_submit "Reset password" %>
<% end %>