BigW Consortium Gitlab

_form.html.haml 771 Bytes
Newer Older
1
= form_for [:admin, @user, @identity], html: { class: 'form-horizontal fieldset-form' } do |f|
2
  - if @identity.errors.any?
3 4 5 6 7 8 9 10
    #error_explanation
      .alert.alert-danger
        - @identity.errors.full_messages.each do |msg|
          %p= msg

  .form-group
    = f.label :provider, class: 'control-label'
    .col-sm-10
11 12
      - 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'
13
  .form-group
14
    = f.label :extern_uid, "Identifier", class: 'control-label'
15
    .col-sm-10
16
      = f.text_field :extern_uid, class: 'form-control', required: true
17 18 19 20

  .form-actions
    = f.submit 'Save changes', class: "btn btn-save"