<h2>Change your password</h2>

<p><%= t("helpers.label.user.password_guidance") %></p>

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

  <div><%= f.label :password, "New passphrase" %><br />
  <%= f.password_field :password, autofocus: true %></div>

  <div><%= f.label :password_confirmation, "Confirm new passphrase" %><br />
  <%= f.password_field :password_confirmation %></div>

  <div><%= f.submit "Change my passphrase" %></div>
<% end %>

<%= render "links" %>
<h2>Change your password</h2>

<div class="well">
  <p><%= t("helpers.label.user.password_guidance") %></p>
  <br>
  <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
    <%= devise_error_messages! %>
    <%= f.hidden_field :reset_password_token %>

    <div><%= f.label :password, "New passphrase" %>
    <%= f.password_field :password, autofocus: true %></div>

    <div><%= f.label :password_confirmation, "Confirm new passphrase" %>
    <%= f.password_field :password_confirmation %></div>

    <div><%= f.submit "Change my passphrase", class: "btn btn-primary" %></div>
  <% end %>
</div>
<%= render "links" %>
Improve the presentation of the change password UI
Improve the presentation of the change password UI

This is used when you have requested a password reset and have followed the
link.
