 showError            = require 'app/util/showError'
 isLoggedIn           = require 'app/util/isLoggedIn'
 applyMarkdown        = require 'app/util/applyMarkdown'
+doXhrRequest         = require 'app/util/doXhrRequest'
 
 
 MissingDataView      = require './missingdataview'


  KNOWN_FIELD_TYPES   =
    'ssh_private_key' : 'textarea'

  @generateAddCredentialFormFor = (options) ->



        selectOptions.push { field, values }

    buttons      =
      Save       :
        title    : "Save"
