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

35 lines
1.3 KiB
Text
Raw Normal View History

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 %>
<%= render "devise/shared/links" %>
</div>