2018-04-12 16:11:22 -04:00
|
|
|
= form_for [:admin, @user, @identity], html: { class: 'fieldset-form' } do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@identity)
|
2015-06-19 05:46:49 -04:00
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :provider
|
2015-06-19 05:46:49 -04:00
|
|
|
.col-sm-10
|
2018-02-23 07:10:39 -05:00
|
|
|
- values = Gitlab::Auth::OAuth::Provider.providers.map { |name| ["#{Gitlab::Auth::OAuth::Provider.label_for(name)} (#{name})", name] }
|
2015-07-02 10:33:38 -04:00
|
|
|
= f.select :provider, values, { allow_blank: false }, class: 'form-control'
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2019-02-03 09:29:34 -05:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :extern_uid, _("Identifier")
|
2015-06-19 05:46:49 -04:00
|
|
|
.col-sm-10
|
2015-06-26 22:08:34 -04:00
|
|
|
= f.text_field :extern_uid, class: 'form-control', required: true
|
2015-06-19 05:46:49 -04:00
|
|
|
|
|
|
|
.form-actions
|
2018-09-18 05:58:22 -04:00
|
|
|
= f.submit _('Save changes'), class: "btn btn-success"
|
2015-06-19 05:46:49 -04:00
|
|
|
|