<h2>Log in</h2>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div><%= f.label :'user id' %><br />
  <%= f.text_field :id_string, autofocus: true %></div>

  <div><%= f.label :password %><br />
    <%= f.password_field :password, autocomplete: "off" %></div>

  <% if devise_mapping.rememberable? -%>
    <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
  <% end -%>

  <div><%= f.submit "Log in" %></div>
<% end %>

<%= render "devise/shared/links" %>

<h2>Log in</h2>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div><%= f.label :'user id' %><br />
  <%= f.text_field :id_string, autofocus: true %></div>

<div>
  <%= f.label :password %><br />
  <%= f.password_field :password, autocomplete: "off" %></div>

  <% if devise_mapping.rememberable? -%>
    <div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
  <% end -%>

  <% if Rails.env.development? %>
    <div><%= f.submit "Log in" %></div>
    Admin
    <ul>
    <li>User id: leuler</li>
    <li>Password: password</li>
    </ul>
    Student
    <ul>
    <li>User id: jdoe</li>
    <li>Password: password</li>
    </ul>
  <% end %>
<% end %>

<%= render "devise/shared/links" %>

Add login info to login page
Add login info to login page

If the rails environment is development then show login information on
the login page which corresponds to seed values for predefined users.
