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>
|
|
|
|
|
2019-11-29 00:00:43 +08:00
|
|
|
<% if devise_mapping.rememberable? && !@simple_sign_in %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<div class="field" style="margin-top: 10px;">
|
|
|
|
<%= f.check_box :remember_me %>
|
|
|
|
<%= f.label :remember_me %>
|
|
|
|
</div>
|
2019-11-29 00:00:43 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= hidden_field_tag(:simple_sign_in, @simple_sign_in) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
|
|
|
|
<div class="actions" style="margin-top: 10px; margin-bottom: 10px;">
|
2018-05-25 23:05:00 +08:00
|
|
|
<%= f.submit t("devise.sessions.new.submit"), class: "btn btn-primary" %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2019-11-29 00:00:43 +08:00
|
|
|
<%= render "users/shared/links" unless @simple_sign_in %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</div>
|