<%= form_for(resource, as: resource_name, url: user_registration_path(resource_name), html: { method: :put }) do |f| %>
<%= devise_error_messages! %>
<%= f.label :current_password %>
<%= f.password_field :current_password, autocomplete: "off" %>
<%= f.label :password %>
<%= f.password_field :password, autocomplete: "off" %>
<% if @minimum_password_length %>
<%= @minimum_password_length %> <%= t('devise.registration.minimum_password_length', count: @minimum_password_length) %>
<% end %>
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: "off" %>
<%= f.submit t('page.update') %>
<% end %>