denny/ShinyCMS-ruby

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

Summary

Maintainability
Test Coverage
<h2>
  <%= t( 'shinycms.user.log_in' ) %>
</h2>

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

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

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

  <div class="actions">
    <%= f.submit t( 'shinycms.user.log_in' ), class: 'button' %>
  </div>
<% end %>

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