<%= simple_form_for(resource,
as: resource_name,
url: session_path(resource_name),
html: { class: 'form-horizontal' }
) do |f| %>
<%= f.input :email %>
<%= f.input :password %>
<% if devise_mapping.rememberable? -%>
<%= f.input :remember_me, as: :boolean %>
<% end -%>
<%= f.submit "Sign in", class: 'btn btn-primary' %>
<% end %>
<%= render :partial => "devise/shared/links" %>