       cssClass       : 'solid compact light-gray nav cancel'
       callback       : => @emit 'Cancel'
 
+    @buttons.addSubView @setAsDefaultButton = new KDButtonView
+      title          : 'Apply to Team'
+      cssClass       : 'solid compact green nav next hidden'
+      loader         : yes
+      callback       : => @handleSetDefaultTemplate()
+
     @buttons.addSubView @previewButton = new KDButtonView
       title          : 'Template Preview'
       cssClass       : 'solid compact light-gray nav next prev-button'

      loader         : yes
      callback       : @bound 'handleSave'

    @buttons.addSubView @setAsDefaultButton = new KDButtonView
      title          : 'Set as Default for Team'
      cssClass       : 'solid compact green nav next hidden'
      loader         : yes
      callback       : => @handleSetDefaultTemplate()


  handleSave: ->



  processTemplate: (stackTemplate) ->

    setToGroup = (method = 'add') =>
      @handleSetDefaultTemplate completed = no

      @outputView[method] """
        Your stack script has been successfully saved and all your team
        members now will use the stack you have just saved.

        You can now close this window or continue working with your stack.
      """

    @handleCheckTemplate { stackTemplate }, (err, machines) =>

      @saveButton.hideLoader()
