 JView             = require './../core/jview'
+mailServices      = [
+  'gmail.com', 'hotmail.com', 'outlook.com', 'icloud.com'
+  'yahoo.com', 'gmx.de', 'yandex.ru', 'yandex.com'
+  'aol.com', 'mail.com', 'mail.ru'
+  ]
 
 module.exports = class TeamAllowedDomainTabForm extends KDFormView
 


    super options, data

    @label = new KDLabelView
      title : 'Allow sign up and team discovery with a company email address'
      for   : 'allow'

      type         : 'checkbox'
      name         : 'allow'
      label        : @label
      change       : =>
        state = @checkbox.getValue()
        if state
        then @showExtras()
        else @hideExtras()

    @input = new KDInputView
      placeholder  : 'domain.com, other.edu'
      name         : 'domains'
      defaultValue : domain  if domain

    @button = new KDButtonView
      title      : 'NEXT'
      style      : 'SignupForm-button SignupForm-button--green'
      attributes : testpath : 'allowed-domain-button'
      type       : 'submit'


  hideExtras: -> @$('div.extras').hide()

  showExtras: -> @$('div.extras').show()


  pistachio: ->

    """
    <div class='login-input-view tr'>{{> @checkbox}}{{> @label}}</div>
    <div class='extras'>
      <div class='login-input-view'><span>@</span>{{> @input}}</div>
      <p class='dim'>Please type a domain or multiple domains separated by commas.</p>
    </div>
    {{> @button}}
    """