Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_new_ldap.html.haml « sessions « devise « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fb5a57b509c2a9b88db6af9bbe26b18bf4bbe3e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- server = local_assigns.fetch(:server)
- render_remember_me = remember_me_enabled? && local_assigns.fetch(:render_remember_me, true)
- submit_message = local_assigns.fetch(:submit_message, _('Sign in'))

= form_tag(omniauth_callback_path(:user, server['provider_name']), id: 'new_ldap_user', class: "gl-show-field-errors") do
  .form-group.gl-px-5.gl-pt-5
    = label_tag :username, "#{server['label']} Username"
    = 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 }
  .form-group.gl-px-5
    = label_tag :password
    = 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
    .gl-px-5
      = render Pajamas::CheckboxTagComponent.new(name: 'remember_me') do |c|
        = c.label do
          = _('Remember me')

  .submit-container.move-submit-down.gl-px-5.gl-pb-5
    = submit_tag submit_message, class: "gl-button btn btn-confirm", data: { qa_selector: 'sign_in_button' }