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: 94f8703657b917ae8d03d4626e352b4bdcf8909e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- mirror = f.object
- auth_options = [[_('Password'), 'password'], [_('SSH public key'), 'ssh_public_key']]

.form-group
  = f.label :auth_method, _('Authentication method'), class: 'label-bold'
  .select-wrapper
    = f.select :auth_method,
        options_for_select(auth_options, mirror.auth_method),
        {}, { class: "form-control gl-form-input select-control js-mirror-auth-type qa-authentication-method" }
    = sprite_icon('chevron-down', css_class: "gl-icon gl-absolute gl-top-3 gl-right-3 gl-text-gray-200")
    = f.hidden_field :auth_method, value: "password", class: "js-hidden-mirror-auth-type"

.form-group
  .well-password-auth.collapse.js-well-password-auth
    = f.label :password, _("Password"), class: "label-bold"
    = f.password_field :password, value: mirror.password, class: 'form-control gl-form-input qa-password', autocomplete: 'new-password'