21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
<h2>Log in</h2>
|
|
|
|
<%= 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>
|
|
|
|
<div class="form-actions">
|
|
<%= f.button :submit, "Log in" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|