libertarian-party/partynest

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

Summary

Maintainability
Test Coverage
<div class="container">
  <h1><%= translate '.sign_in' %></h1>

  <%= simple_form_for resource, as: resource_name, url: session_path(resource_name) do |f| %>
    <%= f.input :email,
                required: false,
                autofocus: true,
                input_html: { autocomplete: 'email' } %>

    <%= f.input :password,
                required: false,
                input_html: { autocomplete: 'current-password' } %>

    <%= f.input :remember_me, as: :boolean if devise_mapping.rememberable? %>

    <div class="mb-3">
      <%= recaptcha_tags %>
    </div>

    <%= f.button :submit, translate('.sign_in') %>
  <% end %>

  <%= render 'users/shared/links' %>
</div>