File: _authentication_method.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (17 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- mirror = f.object
- auth_options = [[_('Username and Password'), 'password'], [_('SSH public key'), 'ssh_public_key']]

.form-group
  = f.label :auth_method, _('Authentication method'), class: 'label-bold'
  = f.select :auth_method,
      options_for_select(auth_options, mirror.auth_method),
      {}, { class: "custom-select gl-form-select js-mirror-auth-type gl-max-w-34 gl-block", data: { testid: 'authentication-method-field' } }
  = f.hidden_field :auth_method, value: "password", class: "js-hidden-mirror-auth-type"

.form-group
  = f.label :user, _('Username'), class: 'label-bold'
  = f.text_field :user, class: 'form-control gl-form-input gl-form-input-xl', value: nil, autocomplete: 'off', required: false, autocorrect: 'off', autocapitalize: 'off', spellcheck: false, data: { testid: 'username-field' }
.well-password-auth.collapse.js-well-password-auth
  .form-group
    = f.label :password, _("Password"), class: "label-bold"
    = f.password_field :password, class: 'form-control gl-form-input js-mirror-password-field gl-form-input-xl', autocomplete: 'off', data: { testid: 'password-field' }