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

_authentication_method.html.haml « mirrors « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f72b0d582b7ad9851e2eb21e15d2cd68b3f01e5a (plain)
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-display-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' }