EagerELK/ditty

View on GitHub
views/auth/identity.haml

Summary

Maintainability
Test Coverage
= form_tag("#{settings.map_path}/auth/identity/callback", attributes: { class: 'user' }) do
  .form-group
    %input.form-control.form-control-user{ name: 'username', type: 'email', 'aria-describedby': 'emailHelp', placeholder: 'Enter Email Address...', required: true }
  .form-group
    %input.form-control.form-control-user{ name: 'password', type: 'password', placeholder: 'Password', required: true }
  / .form-group
  /   .custom-control.custom-checkbox.small
  /     <input type="checkbox" class="custom-control-input" id="customCheck">
  /     <label class="custom-control-label" for="customCheck">Remember Me</label>
  %button.btn.btn-primary.btn-user.btn-block{ type: 'submit' } Log In
%hr
.text-center
  %a.small{ href: "#{settings.map_path}/auth/forgot-password" } Forgot Password?
- if policy(::Ditty::User).register?
  .text-center
    %a.small{ href: "#{settings.map_path}/auth/register" } Create an Account!