2015-06-19 05:46:49 -04:00
|
|
|
= form_for [:admin, @user, @identity], html: { class: 'form-horizontal fieldset-form' } do |f|
|
2016-04-04 21:25:38 -04:00
|
|
|
= form_errors(@identity)
|
2015-06-19 05:46:49 -04:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :provider, class: 'control-label'
|
|
|
|
.col-sm-10
|
2015-07-02 10:33:38 -04:00
|
|
|
- values = Gitlab::OAuth::Provider.providers.map { |name| ["#{Gitlab::OAuth::Provider.label_for(name)} (#{name})", name] }
|
|
|
|
= f.select :provider, values, { allow_blank: false }, class: 'form-control'
|
2015-06-19 05:46:49 -04:00
|
|
|
.form-group
|
2015-06-22 10:53:11 -04:00
|
|
|
= f.label :extern_uid, "Identifier", class: 'control-label'
|
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
|
|
|
|
= f.submit 'Save changes', class: "btn btn-save"
|
|
|
|
|