scinote-web/app/views/users/passwords/new.html.erb

30 lines
1.1 KiB
Text
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% provide(:head_title, t("devise.passwords.new.head_title")) %>
2020-03-27 16:43:49 +08:00
<% content_for(:body_class, 'forgot-password-layout') %>
<div class="forgot-password-container">
<div class="forgot-password-form-wrapper">
<div class="center-block center-block-narrow">
<h1 class="forgot-password-title"><%=t "devise.passwords.new.title" %></h1>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) 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>
2020-03-27 16:43:49 +08:00
<% end %>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<div class="form-group sci-input-container">
2020-07-06 20:52:42 +08:00
<%= f.label :email %><br />
2020-03-27 16:43:49 +08:00
<%= f.email_field :email, autofocus: true, class: "form-control sci-input-field" %>
</div>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<div class="form-group">
2020-07-06 20:52:42 +08:00
<%= f.button t("devise.passwords.new.submit"), class: "btn btn-primary" %>
2020-03-27 16:43:49 +08:00
</div>
<% end %>
2016-02-12 23:52:43 +08:00
2020-03-27 16:43:49 +08:00
<%= render partial: 'users/shared/links', locals: {linkedin_skip: true} %>
2016-02-12 23:52:43 +08:00
</div>
2020-03-27 16:43:49 +08:00
</div>
2016-02-12 23:52:43 +08:00
</div>