2016-02-12 23:52:43 +08:00
|
|
|
<% provide(:head_title, t("devise.sessions.new.head_title")) %>
|
|
|
|
|
|
|
|
<div class="center-block center-block-narrow">
|
|
|
|
<h2><%=t "devise.sessions.new.title" %></h2>
|
|
|
|
|
|
|
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon" style="text-transform: capitalize;">
|
|
|
|
<%= :email %>
|
|
|
|
</span>
|
|
|
|
<%= f.email_field :email, autofocus: true, class: "form-control", placeholder: t("devise.sessions.new.email_placeholder") %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group" style="margin-top: 10px;">
|
|
|
|
<span class="input-group-addon" style="text-transform: capitalize;">
|
|
|
|
<%= :password %>
|
|
|
|
</span>
|
|
|
|
<%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: t("devise.sessions.new.password_placeholder") %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if devise_mapping.rememberable? -%>
|
|
|
|
<div class="field" style="margin-top: 10px;">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<%= f.label :remember_me %>
|
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
|
|
|
|
<div class="actions" style="margin-top: 10px; margin-bottom: 10px;">
|
|
|
|
<%= f.submit t("devise.sessions.new.submit"), class: "btn btn-default" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2016-11-29 23:12:35 +08:00
|
|
|
<%= render "users/shared/links" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|