-JView                   = require './../../core/jview'
-MainHeaderView          = require './../../core/mainheaderview'
-TeamUsernameTabForm     = require './../forms/teamusernametabform'
+JView                     = require './../../core/jview'
+MainHeaderView            = require './../../core/mainheaderview'
+TeamUsernameTabForm       = require './../forms/teamusernametabform'
+TeamLoginAndCreateTabForm = require './../forms/teamloginandcreatetabform'
 
 module.exports = class TeamUsernameTab extends KDTabPaneView
 


    super options, data

    { mainController } = KD.singletons

    @header = new MainHeaderView
      cssClass : 'team'
      navItems : []

    @form = new TeamUsernameTabForm
      callback : (formData) ->
        KD.utils.storeNewTeamData 'username', formData
        KD.utils.createTeam (err, res) -> console.log err, res


  pistachio: ->

    """
    {{> @header }}
    <div class="TeamsModal TeamsModal--groupCreation">
      {{> @title}}
      {{> @subtitle}}
      {{> @form}}
    </div>
    """