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.1 KiB
Text
Raw Normal View History

2019-03-02 22:35:43 +05:30
- server = local_assigns.fetch(:server)
2023-07-09 08:55:56 +05:30
- render_remember_me = remember_me_enabled? && local_assigns.fetch(:render_remember_me, true)
2020-05-24 23:13:21 +05:30
- 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
2023-07-09 08:55:56 +05:30
= password_field_tag :password, nil, { class: 'form-control gl-form-input js-password', data: { id: 'password', name: 'password', qa_selector: 'password_field' } }
- if render_remember_me
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' }