 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'

      {{> @outputView}}
      {{> @cancelButton}}
      {{> @setAsDefaultButton}}
      {{> @saveButton}}
    """
      loader         : yes
      callback       : @bound 'handleSave'

    @previewButton   = new kd.ButtonView
      title          : 'Template Preview'
      cssClass       : 'solid compact light-gray nav next'
      loader         : yes
      callback       : @bound 'handlePreview'
      tooltip        :
        title        : "Generates a preview of this template
                        with your own account information."

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

    # TODO getrid off from these css properties ~ GG
    @previewButton.setCss      'right', '110px'
    @setAsDefaultButton.setCss 'right', '265px'


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