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
|
2018-04-12 19:16:56 -04:00
|
|
|
= f.label :provider, class: 'col-form-label col-sm-2'
|
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
|
2018-06-16 00:53:45 -04:00
|
|
|
= f.label :extern_uid, _("Identifier"), class: 'col-form-label col-sm-2'
|
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
|
|
|
|