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

21 lines
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'
2018-12-05 23:21:45 +05:30
= f.text_field :login, class: "form-control top qa-login-field", autofocus: "autofocus", autocapitalize: "off", autocorrect: "off", required: true, title: "This field is required."
2017-08-17 22:00:37 +05:30
.form-group
2018-11-20 20:47:30 +05:30
= f.label :password, class: 'label-bold'
2018-12-05 23:21:45 +05:30
= f.password_field :password, class: "form-control bottom qa-password-field", required: true, title: "This field is required."
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
- if captcha_enabled?
= recaptcha_tags
2017-08-17 22:00:37 +05:30
.submit-container.move-submit-down
2018-12-05 23:21:45 +05:30
= f.submit "Sign in", class: "btn btn-success qa-sign-in-button"