app/views/devise/passwords/edit.html.erb
<div class="row justify-content-xl-center">
<div class="col-xl-4">
<h2><%= t('devise.passwords.change_password.title') %></h2>
<%= form_for(resource, as: resource_name, url: password_path(resource_name), method: :put, class: 'form-horizontal') do |f| %>
<%= f.hidden_field :reset_password_token %>
<%= render 'devise/shared/error_messages' %>
<div class="form-group">
<%= f.label :password %>
<%= f.password_field :password, autofocus: true, autocomplete: 'off', class: 'form-control' %>
<% if @minimum_password_length %>
<span class="help-block"><%= t('devise.passwords.minimum', minimum_length_value: @minimum_password_length) %></span>
<% end %>
</div>
<div class="form-group">
<%= f.label :password_confirmation %>
<%= f.password_field :password_confirmation, autocomplete: 'off', class: 'form-control' %>
</div>
<div class="actions">
<%= f.submit t('devise.registrations.change_password'), class: 'btn btn-primary' %>
</div>
<% end %>
<%= render 'devise/shared/links' %>
</div>
</div>