_form.html.haml 689 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
= form_for [:admin, @user, @identity], html: { class: 'form-horizontal fieldset-form' } do |f|
  -if @identity.errors.any?
    #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
      = f.text_field :provider, required: true, autocomplete: "off", class: 'form-control', required: true
  .form-group
    = f.label :extern_uid, class: 'control-label'
    .col-sm-10
      = f.text_field :extern_uid, required: true, autocomplete: "off", class: 'form-control', required: true

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