2018-08-28 13:34:52 +00:00
|
|
|
<div class="login-container">
|
|
|
|
<div class="login-content">
|
|
|
|
<h2>Log in</h2>
|
2018-08-27 14:37:06 +00:00
|
|
|
|
2018-08-28 13:34:52 +00:00
|
|
|
<%= simple_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
|
|
|
<div class="form-inputs">
|
|
|
|
<%= f.input :email,
|
|
|
|
required: false,
|
|
|
|
autofocus: true,
|
|
|
|
input_html: { autocomplete: "email" } %>
|
|
|
|
<%= f.input :password,
|
|
|
|
required: false,
|
|
|
|
input_html: { autocomplete: "current-password" } %>
|
|
|
|
<%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>
|
|
|
|
</div>
|
2018-08-27 14:37:06 +00:00
|
|
|
|
2018-08-28 13:34:52 +00:00
|
|
|
<div class="form-actions">
|
|
|
|
<%= f.button :submit, "Log in", class: "login btn btn-primary" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2018-08-27 14:37:06 +00:00
|
|
|
|
2018-08-28 13:34:52 +00:00
|
|
|
<%= render "devise/shared/links" %>
|
|
|
|
</div>
|
|
|
|
</div>
|