2016-11-02 06:35:21 -04:00
|
|
|
= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f|
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2019-08-14 17:33:39 -04:00
|
|
|
= f.label _('Username or email'), for: 'user_login', class: 'label-bold'
|
|
|
|
= f.text_field :login, class: 'form-control top', autofocus: 'autofocus', autocapitalize: 'off', autocorrect: 'off', required: true, title: _('This field is required.'), data: { qa_selector: 'login_field' }
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2018-09-06 05:43:14 -04:00
|
|
|
= f.label :password, class: 'label-bold'
|
2019-08-14 17:33:39 -04:00
|
|
|
= f.password_field :password, class: 'form-control bottom', required: true, title: _('This field is required.'), data: { qa_selector: 'password_field' }
|
2013-05-24 12:43:47 -04:00
|
|
|
- if devise_mapping.rememberable?
|
2018-04-16 11:48:14 -04:00
|
|
|
.remember-me
|
2019-08-14 17:33:39 -04:00
|
|
|
%label{ for: 'user_remember_me' }
|
2017-03-22 18:34:21 -04:00
|
|
|
= f.check_box :remember_me, class: 'remember-me-checkbox'
|
2013-05-24 12:43:47 -04:00
|
|
|
%span Remember me
|
2019-08-14 17:33:39 -04:00
|
|
|
.float-right
|
|
|
|
- if unconfirmed_email?
|
|
|
|
= link_to _('Resend confirmation email'), new_user_confirmation_path
|
|
|
|
- else
|
|
|
|
= link_to _('Forgot your password?'), new_password_path(:user)
|
2018-06-21 14:13:08 -04:00
|
|
|
%div
|
2019-07-18 04:27:02 -04:00
|
|
|
- if captcha_enabled? || captcha_on_login_required?
|
2018-06-21 14:13:08 -04:00
|
|
|
= recaptcha_tags
|
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
.submit-container.move-submit-down
|
2019-08-14 17:33:39 -04:00
|
|
|
= f.submit _('Sign in'), class: 'btn btn-success', data: { qa_selector: 'sign_in_button' }
|