<!--Descriptive page name, messages and instructions-->
<h2 class="heading"><%= ts("Change My Password") %></h2>
<%= error_messages_for resource %>
<!--/descriptions-->

<!--main content-->
<%= form_for resource, url: users_password_reset_path, html: { method: :put, class: "reset password post" } do |f| %>
  <%= f.hidden_field :reset_password_token %>
  <dl>
    <dt><%= label_tag :edit_password, ts("New password") %></dt>
    <dd>
      <%= f.password_field(:password, id: :edit_password,
                           "aria-describedby" => "password-field-description") %>
      <p class="footnote" id="password-field-description">
        <%= ts("%{minimum} to %{maximum} characters",
                                 minimum: ArchiveConfig.PASSWORD_LENGTH_MIN,
                                 maximum: ArchiveConfig.PASSWORD_LENGTH_MAX) %>
      </p>
    </dd>
    <dt><%= label_tag :edit_password_confirmation, ts("Confirm new password") %></dt>
    <dd><%= f.password_field :password_confirmation, id: :edit_password_confirmation %></dd>
    <dt class="landmark"><%= ts("Submit") %></dt>
    <dd class="submit actions">
      <%= f.submit ts("Change Password") %>
    </dd>
  </dl>
<% end %>
<!--/content-->
