gitlab-org--gitlab-foss/app/views/devise/sessions/_new_base.html.haml

17 lines
908 B
Text
Raw Normal View History

= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f|
%div.form-group
= f.label "Username or email", for: :login
= f.text_field :login, class: "form-control top", autofocus: "autofocus", autocapitalize: "off", autocorrect: "off", required: true, title: "This field is required."
%div.form-group
= f.label :password
= f.password_field :password, class: "form-control bottom", required: true, title: "This field is required."
- if devise_mapping.rememberable?
2015-02-19 18:02:49 -05:00
.remember-me.checkbox
%label{for: "user_remember_me"}
= f.check_box :remember_me
%span Remember me
.pull-right.forgot-password
2015-02-19 18:02:49 -05:00
= link_to "Forgot your password?", new_password_path(resource_name)
2016-11-17 14:14:56 -05:00
%div.submit-container.move-submit-down
= f.submit "Sign in", class: "btn btn-save"