2016-11-02 06:35:21 -04:00
|
|
|
= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'new_user gl-show-field-errors', 'aria-live' => 'assertive'}) do |f|
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2017-05-16 08:13:56 -04:00
|
|
|
= f.label "Username or email", for: "user_login"
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.text_field :login, class: "form-control top", autofocus: "autofocus", autocapitalize: "off", autocorrect: "off", required: true, title: "This field is required."
|
2016-12-23 04:37:12 -05:00
|
|
|
.form-group
|
2016-09-09 08:21:00 -04:00
|
|
|
= f.label :password
|
|
|
|
= f.password_field :password, class: "form-control bottom", required: true, title: "This field is required."
|
2013-05-24 12:43:47 -04:00
|
|
|
- if devise_mapping.rememberable?
|
2018-04-16 11:48:14 -04:00
|
|
|
.remember-me
|
2016-12-26 05:47:16 -05:00
|
|
|
%label{ for: "user_remember_me" }
|
2017-03-22 18:34:21 -04:00
|
|
|
= f.check_box :remember_me, class: 'remember-me-checkbox'
|
2013-05-24 12:43:47 -04:00
|
|
|
%span Remember me
|
2018-04-09 13:42:45 -04:00
|
|
|
.float-right.forgot-password
|
2017-12-05 04:01:46 -05:00
|
|
|
= link_to "Forgot your password?", new_password_path(:user)
|
2018-06-21 14:13:08 -04:00
|
|
|
%div
|
|
|
|
- if captcha_enabled?
|
|
|
|
= recaptcha_tags
|
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
.submit-container.move-submit-down
|
2016-11-17 14:14:56 -05:00
|
|
|
= f.submit "Sign in", class: "btn btn-save"
|