Log in

<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'needs-validation', novalidate: true }) do |f| %>
<%= f.label :email, class: 'form-label' %> <%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'form-control', placeholder: 'Enter email' %>
<%= f.label :password, class: 'form-label' %> <%= f.password_field :password, autocomplete: "current-password", class: 'form-control', placeholder: 'Password' %>
<% if devise_mapping.rememberable? %>
<%= f.check_box :remember_me, class: 'form-check-input' %> <%= f.label :remember_me, class: 'form-check-label' %>
<% end %>
<%= f.submit "Log in", class: 'btn btn-primary' %>
<% end %> <%= render "devise/shared/links" %>