debian-mirror-gitlab/app/views/devise/sessions/_new_ldap.html.haml

20 lines
1.1 KiB
Text
Raw Normal View History

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
2016-11-03 12:29:30 +05:30
.form-group
= 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 }
2016-11-03 12:29:30 +05:30
.form-group
= label_tag :password
2021-04-29 21:17:54 +05:30
= password_field_tag :password, nil, { 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?
2018-11-08 19:23:39 +05:30
.remember-me
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
.submit-container.move-submit-down
2021-04-17 20:07:23 +05:30
= submit_tag submit_message, class: "gl-button btn btn-confirm", data: { qa_selector: 'sign_in_button' }