2019-03-02 22:35:43 +05:30
|
|
|
- server = local_assigns.fetch(:server)
|
2020-05-24 23:13:21 +05:30
|
|
|
- hide_remember_me = local_assigns.fetch(:hide_remember_me, false)
|
|
|
|
- submit_message = local_assigns.fetch(:submit_message, _('Sign in'))
|
2019-03-02 22:35:43 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
= form_tag(omniauth_callback_path(:user, server['provider_name']), id: 'new_ldap_user', class: "gl-show-field-errors") do
|
2022-07-16 23:28:13 +05:30
|
|
|
.form-group.gl-px-5.gl-pt-5
|
2016-11-03 12:29:30 +05:30
|
|
|
= label_tag :username, "#{server['label']} Username"
|
2021-04-29 21:17:54 +05:30
|
|
|
= text_field_tag :username, nil, { class: "form-control gl-form-input top", title: _("This field is required."), autofocus: "autofocus", data: { qa_selector: 'username_field' }, required: true }
|
2022-07-16 23:28:13 +05:30
|
|
|
.form-group.gl-px-5
|
2016-11-03 12:29:30 +05:30
|
|
|
= label_tag :password
|
2021-11-18 22:05:49 +05:30
|
|
|
= password_field_tag :password, nil, { autocomplete: 'current-password', class: "form-control gl-form-input bottom", title: _("This field is required."), data: { qa_selector: 'password_field' }, required: true }
|
2020-05-24 23:13:21 +05:30
|
|
|
- if !hide_remember_me && devise_mapping.rememberable?
|
2022-07-16 23:28:13 +05:30
|
|
|
.remember-me.gl-px-5
|
2017-08-17 22:00:37 +05:30
|
|
|
%label{ for: "remember_me" }
|
2015-09-11 14:41:01 +05:30
|
|
|
= check_box_tag :remember_me, '1', false, id: 'remember_me'
|
2021-04-29 21:17:54 +05:30
|
|
|
%span= _('Remember me')
|
2020-05-24 23:13:21 +05:30
|
|
|
|
2022-07-16 23:28:13 +05:30
|
|
|
.submit-container.move-submit-down.gl-px-5
|
2021-04-17 20:07:23 +05:30
|
|
|
= submit_tag submit_message, class: "gl-button btn btn-confirm", data: { qa_selector: 'sign_in_button' }
|