 kd                   = require 'kd'
+jspath               = require 'jspath'
 
 JView                = require 'app/jview'
+whoami               = require 'app/util/whoami'
 curryIn              = require 'app/util/curryIn'
 showError            = require 'app/util/showError'
+applyMarkdown         = require 'app/util/applyMarkdown'
 
 {yamlToJson}         = require './yamlutils'
 providersParser      = require './providersparser'

      loader         : yes
      callback       : @bound 'handleSave'

    @setAsDefaultButton = new kd.ButtonView
      title          : 'Set as Default for Team'
      cssClass       : 'solid compact nav next hidden'
      loader         : yes
      callback       : @bound 'handleSetDefaultTemplate'

    @setAsDefaultButton.setCss 'right', '110px'


    @credentialStatus.on 'StatusChanged', (status) =>

      {{> @outputView}}
      {{> @cancelButton}}
      {{> @setAsDefaultButton}}
      {{> @previewButton}}
      {{> @saveButton}}
    """