otwarchive-symphonyarchive/app/views/users/passwords/edit.html.erb
2026-03-11 22:22:11 +00:00

28 lines
1.2 KiB
Text

<!--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-->