gitlab-org--gitlab-foss/app/views/admin/identities/_form.html.haml
Tao Wang ff10f02db9 i18n: externalize strings from 'app/views/admin/identities'
Signed-off-by: Tao Wang <twang2218@gmail.com>
2018-06-29 16:19:44 +10:00

16 lines
677 B
Text

= form_for [:admin, @user, @identity], html: { class: 'fieldset-form' } do |f|
= form_errors(@identity)
.form-group.row
= f.label :provider, class: 'col-form-label col-sm-2'
.col-sm-10
- values = Gitlab::Auth::OAuth::Provider.providers.map { |name| ["#{Gitlab::Auth::OAuth::Provider.label_for(name)} (#{name})", name] }
= f.select :provider, values, { allow_blank: false }, class: 'form-control'
.form-group.row
= f.label :extern_uid, _("Identifier"), class: 'col-form-label col-sm-2'
.col-sm-10
= f.text_field :extern_uid, class: 'form-control', required: true
.form-actions
= f.submit _('Save changes'), class: "btn btn-save"