 
     super options, data
 
+    teamData = KD.utils.getTeamData()
+
+    @alreadyMember = teamData.signup?.alreadyMember
+    domains        = KD.config.group.allowedDomains
+
     @addSubView new MainHeaderView
       cssClass : 'team'
       navItems : []

MainHeaderView            = require './../../core/mainheaderview'
TeamJoinTabForm           = require './../forms/teamjointabform'
TeamLoginAndCreateTabForm = require './../forms/teamloginandcreatetabform'


    wrapper.addSubView new KDCustomHTMLView
      tagName : 'h4'
      partial : if @alreadyMember then 'Join with your account' else 'Join with your email'


    desc = if @alreadyMember
      "Please enter your <i>Koding.com</i> password."
    else if domains?.length > 1
      domainsPartial = KD.utils.getAllowedDomainsPartial domains
      "You must have an email address from one of these domains #{domainsPartial} to join"
    else if domains?.length is 1
      "You must have a #{articlize domains.first} <i>#{domains.first}</i> email address to join"
    else
      "You are about to join to <i>#{KD.config.group.title}</i> on Koding"


    wrapper.addSubView new KDCustomHTMLView
