debian-mirror-gitlab/app/views/devise/sessions/_new_base.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1.7 KiB
Text
Raw Normal View History

2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors js-sign-in-form', aria: { live: 'assertive' }, data: { testid: 'sign-in-form' }}) do |f|
2017-08-17 22:00:37 +05:30
.form-group
2019-10-12 21:52:04 +05:30
= f.label _('Username or email'), for: 'user_login', class: 'label-bold'
2022-06-21 17:19:12 +05:30
= f.text_field :login, value: @invite_email, class: 'form-control gl-form-input top js-username-field', autofocus: 'autofocus', autocapitalize: 'off', autocorrect: 'off', required: true, title: _('This field is required.'), data: { qa_selector: 'login_field', testid: 'username-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'
2021-11-18 22:05:49 +05:30
= f.password_field :password, class: 'form-control gl-form-input bottom', autocomplete: 'current-password', required: true, title: _('This field is required.'), data: { qa_selector: 'password_field' }
2014-09-02 18:07:02 +05:30
- if devise_mapping.rememberable?
2021-11-18 22:05:49 +05:30
%div
2022-06-21 17:19:12 +05:30
.gl-display-inline-block
= f.gitlab_ui_checkbox_component :remember_me, _('Remember me')
.gl-float-right
2019-10-12 21:52:04 +05:30
- 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
2022-06-21 17:19:12 +05:30
- if Feature.enabled?(:arkose_labs_login_challenge)
= render_if_exists 'devise/sessions/arkose_labs'
- elsif captcha_enabled? || captcha_on_login_required?
2021-06-08 01:23:25 +05:30
= recaptcha_tags nonce: content_security_policy_nonce
2018-11-08 19:23:39 +05:30
2017-08-17 22:00:37 +05:30
.submit-container.move-submit-down
2022-06-21 17:19:12 +05:30
= f.button _('Sign in'), type: :submit, class: "gl-button btn btn-block btn-confirm js-sign-in-button#{' js-no-auto-disable' if Feature.enabled?(:arkose_labs_login_challenge)}", data: { qa_selector: 'sign_in_button', testid: 'sign-in-button' }