debian-mirror-gitlab/app/views/projects/mirrors/_authentication_method.html.haml

17 lines
866 B
Text
Raw Normal View History

2019-02-15 15:39:39 +05:30
- mirror = f.object
- auth_options = [[_('Password'), 'password'], [_('SSH public key'), 'ssh_public_key']]
.form-group
= f.label :auth_method, _('Authentication method'), class: 'label-bold'
2019-12-26 22:10:19 +05:30
.select-wrapper
= f.select :auth_method,
options_for_select(auth_options, mirror.auth_method),
2022-03-02 08:16:31 +05:30
{}, { class: "form-control gl-form-select select-control js-mirror-auth-type qa-authentication-method" }
2021-01-29 00:20:46 +05:30
= sprite_icon('chevron-down', css_class: "gl-icon gl-absolute gl-top-3 gl-right-3 gl-text-gray-200")
2019-12-26 22:10:19 +05:30
= f.hidden_field :auth_method, value: "password", class: "js-hidden-mirror-auth-type"
2019-02-15 15:39:39 +05:30
.form-group
.well-password-auth.collapse.js-well-password-auth
= f.label :password, _("Password"), class: "label-bold"
2022-02-27 12:50:16 +05:30
= f.password_field :password, class: 'form-control gl-form-input qa-password js-mirror-password-field', autocomplete: 'off'