2018-11-08 19:23:39 +05:30
|
|
|
= form_for [:admin, @user, @identity], html: { class: 'fieldset-form' } do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(@identity)
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :provider
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-10
|
2018-03-27 19:54:05 +05:30
|
|
|
- values = Gitlab::Auth::OAuth::Provider.providers.map { |name| ["#{Gitlab::Auth::OAuth::Provider.label_for(name)} (#{name})", name] }
|
2015-09-11 14:41:01 +05:30
|
|
|
= f.select :provider, values, { allow_blank: false }, class: 'form-control'
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2019-09-04 21:01:54 +05:30
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :extern_uid, _("Identifier")
|
2015-09-11 14:41:01 +05:30
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :extern_uid, class: 'form-control', required: true
|
|
|
|
|
|
|
|
.form-actions
|
2018-12-05 23:21:45 +05:30
|
|
|
= f.submit _('Save changes'), class: "btn btn-success"
|
2015-09-11 14:41:01 +05:30
|
|
|
|