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

21 lines
1.1 KiB
Text
Raw Normal View History

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
2018-11-20 20:47:30 +05:30
= f.label "Username or email", for: "user_login", class: 'label-bold'
2019-09-30 21:07:59 +05:30
= 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' }
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-09-30 21:07:59 +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
2017-08-17 22:00:37 +05:30
%label{ for: "user_remember_me" }
= f.check_box :remember_me, class: 'remember-me-checkbox'
2014-09-02 18:07:02 +05:30
%span Remember me
2018-11-08 19:23:39 +05:30
.float-right.forgot-password
2018-03-17 18:26:18 +05:30
= 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-09-30 21:07:59 +05:30
= f.submit "Sign in", class: "btn btn-success", data: { qa_selector: 'sign_in_button' }