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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
1.2 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
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-11-25 23:54:43 +05:30
.gl-px-5
= render Pajamas::CheckboxTagComponent.new(name: 'remember_me') do |c|
= c.label do
= _('Remember me')
2020-05-24 23:13:21 +05:30
2022-08-13 15:12:31 +05:30
.submit-container.move-submit-down.gl-px-5.gl-pb-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' }