2016-02-12 23:52:43 +08:00
|
|
|
<% provide(:head_title, t("devise.passwords.new.head_title")) %>
|
|
|
|
|
|
|
|
<div class="center-block center-block-narrow">
|
|
|
|
<h2><%=t "devise.passwords.new.title" %></h2>
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
|
|
|
|
|
|
|
|
<% if not resource.errors.empty? %>
|
2017-11-08 23:23:52 +08:00
|
|
|
<div class="alert alert-danger" id="alert-flash">
|
2016-02-12 23:52:43 +08:00
|
|
|
<%= devise_error_messages! %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.label :email %><br /actions>
|
|
|
|
<%= f.email_field :email, autofocus: true, class: "form-control" %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= f.submit t("devise.passwords.new.submit"), class: "btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2016-11-29 23:12:35 +08:00
|
|
|
<%= render "users/shared/links" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|