2019-01-27 16:12:00 -05:00
|
|
|
- server = local_assigns.fetch(:server)
|
|
|
|
|
2016-11-02 06:35:21 -04:00
|
|
|
= form_tag(omniauth_callback_path(:user, server['provider_name']), id: 'new_ldap_user', class: "gl-show-field-errors") do
|
2016-09-09 08:21:00 -04:00
|
|
|
.form-group
|
2016-10-17 12:13:21 -04:00
|
|
|
= label_tag :username, "#{server['label']} Username"
|
2019-07-18 11:27:57 -04:00
|
|
|
= text_field_tag :username, nil, { class: "form-control top", title: "This field is required.", autofocus: "autofocus", data: { qa_selector: 'username_field' }, required: true }
|
2016-09-09 08:21:00 -04:00
|
|
|
.form-group
|
|
|
|
= label_tag :password
|
2019-07-18 11:27:57 -04:00
|
|
|
= password_field_tag :password, nil, { class: "form-control bottom", title: "This field is required.", data: { qa_selector: 'password_field' }, required: true }
|
2015-06-05 08:37:01 -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: "remember_me" }
|
2015-06-05 08:37:01 -04:00
|
|
|
= check_box_tag :remember_me, '1', false, id: 'remember_me'
|
|
|
|
%span Remember me
|
2019-07-18 07:57:26 -04:00
|
|
|
= submit_tag "Sign in", class: "btn-success btn", data: { qa_selector: 'sign_in_button' }
|