2017-08-17 22:00:37 +05:30
|
|
|
= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f|
|
|
|
|
.form-group
|
2019-10-12 21:52:04 +05:30
|
|
|
= f.label _('Username or email'), for: 'user_login', class: 'label-bold'
|
2020-10-24 23:57:45 +05:30
|
|
|
= f.text_field :login, value: @invite_email, class: 'form-control top', autofocus: 'autofocus', autocapitalize: 'off', autocorrect: 'off', required: true, title: _('This field is required.'), data: { qa_selector: 'login_field' }
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-group
|
2018-11-20 20:47:30 +05:30
|
|
|
= f.label :password, class: 'label-bold'
|
2019-10-12 21:52:04 +05:30
|
|
|
= f.password_field :password, class: 'form-control bottom', required: true, title: _('This field is required.'), data: { qa_selector: 'password_field' }
|
2014-09-02 18:07:02 +05:30
|
|
|
- if devise_mapping.rememberable?
|
2018-11-08 19:23:39 +05:30
|
|
|
.remember-me
|
2019-10-12 21:52:04 +05:30
|
|
|
%label{ for: 'user_remember_me' }
|
2017-08-17 22:00:37 +05:30
|
|
|
= f.check_box :remember_me, class: 'remember-me-checkbox'
|
2014-09-02 18:07:02 +05:30
|
|
|
%span Remember me
|
2019-10-12 21:52:04 +05:30
|
|
|
.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-11-08 19:23:39 +05:30
|
|
|
%div
|
2019-09-04 21:01:54 +05:30
|
|
|
- if captcha_enabled? || captcha_on_login_required?
|
2018-11-08 19:23:39 +05:30
|
|
|
= recaptcha_tags
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
.submit-container.move-submit-down
|
2019-10-12 21:52:04 +05:30
|
|
|
= f.submit _('Sign in'), class: 'btn btn-success', data: { qa_selector: 'sign_in_button' }
|