emory-libraries/dlp-selfdeposit

View on GitHub
app/views/devise/sessions/new.html.erb

Summary

Maintainability
Test Coverage
<%# devise override 4.9.4 %>
<%# https://github.com/heartcombo/devise/blob/v4.9.4/app/views/devise/sessions/new.html.erb %>
<div class="emory-login">
    <h2>Log in</h2>

    <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
    <div class="field">
        <p><%= f.label :email %></p>
        <p><%= f.email_field :email, autofocus: true, autocomplete: "email" %></p>
    </div>

    <div class="field">
        <p><%= f.label :password %></p>
        <p><%= f.password_field :password, autocomplete: "current-password" %></p>
    </div>

    <% if devise_mapping.rememberable? %>
        <div class="field">
        <p><%= f.check_box :remember_me %></p>
        <p><%= f.label :remember_me %></p>
        </div>
    <% end %>

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

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