2016-11-02 10:35:21 +00:00
|
|
|
= form_tag(omniauth_callback_path(:user, server['provider_name']), id: 'new_ldap_user', class: "gl-show-field-errors") do
|
2016-09-09 12:21:00 +00:00
|
|
|
.form-group
|
2016-10-17 16:13:21 +00:00
|
|
|
= label_tag :username, "#{server['label']} Username"
|
2016-12-26 10:47:16 +00:00
|
|
|
= text_field_tag :username, nil, { class: "form-control top", title: "This field is required.", autofocus: "autofocus", required: true }
|
2016-09-09 12:21:00 +00:00
|
|
|
.form-group
|
|
|
|
= label_tag :password
|
|
|
|
= password_field_tag :password, nil, { class: "form-control bottom", title: "This field is required.", required: true }
|
2015-06-05 12:37:01 +00:00
|
|
|
- if devise_mapping.rememberable?
|
|
|
|
.remember-me.checkbox
|
2016-12-26 10:47:16 +00:00
|
|
|
%label{ for: "remember_me" }
|
2015-06-05 12:37:01 +00:00
|
|
|
= check_box_tag :remember_me, '1', false, id: 'remember_me'
|
|
|
|
%span Remember me
|
2016-10-17 17:06:43 +00:00
|
|
|
= submit_tag "Sign in", class: "btn-save btn"
|