2016-02-12 23:52:43 +08:00
|
|
|
<% provide(:head_title, t("devise.passwords.edit.head_title")) %>
|
|
|
|
|
|
|
|
<div class="center-block center-block-narrow">
|
|
|
|
<h2><%=t "devise.passwords.edit.title" %></h2>
|
|
|
|
|
2023-05-05 16:40:24 +08:00
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, id: 'forgot-password-form' }) do |f| %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2021-07-23 17:56:28 +08:00
|
|
|
<% if resource.errors.present? %>
|
|
|
|
<div class="alert alert-danger" id="alert-flash">
|
|
|
|
<%= devise_error_messages! %>
|
|
|
|
</div>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= f.hidden_field :reset_password_token %>
|
|
|
|
|
2022-06-09 17:40:22 +08:00
|
|
|
<p class="sci-input-container">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= f.label :password, t("devise.passwords.edit.password") %>
|
|
|
|
<% if @minimum_password_length %>
|
2022-10-18 17:54:10 +08:00
|
|
|
<em><%= t("devise.passwords.edit.password_length", min_length: @minimum_password_length) %></em>
|
|
|
|
<% end %>
|
|
|
|
<br>
|
2022-06-09 17:40:22 +08:00
|
|
|
<%= f.password_field :password, autofocus: true, autocomplete: "off", class: "sci-input-field" %>
|
|
|
|
</p>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2022-06-09 17:40:22 +08:00
|
|
|
<p class="sci-input-container">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= f.label :password_confirmation, t("devise.passwords.edit.password_confirm") %>
|
2022-06-09 17:40:22 +08:00
|
|
|
<%= f.password_field :password_confirmation, autocomplete: "off", class: "sci-input-field" %>
|
|
|
|
</p>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
<div class="form-group">
|
2023-05-05 16:40:24 +08:00
|
|
|
<%= f.button t("devise.passwords.edit.submit"), class: "btn btn-primary forgot-password-submit" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2016-11-29 23:12:35 +08:00
|
|
|
<%= render "users/shared/links" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
2023-05-05 16:40:24 +08:00
|
|
|
|
|
|
|
<%= render partial: 'users/sessions/login_disclaimer'%>
|