<commit_before>JView = require './../../core/jview'

module.exports = class TeamLoginAndCreateTabForm extends KDFormView

  JView.mixin @prototype

  constructor:(options = {}, data)->

    options.cssClass = 'clearfix'

    super options, data

    @addCustomData 'username', KD.utils.getTeamData().signup.email
    @password = new KDInputView
      type          : 'password'
      name          : 'password'
      placeholder   : 'password'
      validate      :
        event       : 'blur'
        rules       :
          required  : yes
        messages    :
          required  : 'Please enter a password.'

    @button = new KDButtonView
      title      : 'Continue to environmental setup'
      style      : 'TeamsModal-button TeamsModal-button--green'
      attributes : testpath : 'register-button'
      type       : 'submit'


  pistachio: ->

    """<commit_msg>teams: fix already registered members are not able to accept an invitation bug<commit_after>JView = require './../../core/jview'

module.exports = class TeamLoginAndCreateTabForm extends KDFormView

  JView.mixin @prototype

  constructor:(options = {}, data)->

    options.cssClass = 'clearfix'

    super options, data

    { username, email } = KD.utils.getTeamData().signup

    @addCustomData 'username', email or username
    @password = new KDInputView
      type          : 'password'
      name          : 'password'
      placeholder   : 'password'
      validate      :
        event       : 'blur'
        rules       :
          required  : yes
        messages    :
          required  : 'Please enter a password.'

    @button = new KDButtonView
      title      : 'Continue to environmental setup'
      style      : 'TeamsModal-button TeamsModal-button--green'
      attributes : testpath : 'register-button'
      type       : 'submit'


  pistachio: ->

    """
{'fraction_non_alphanumeric': 0.10010764262648009, 'fraction_numerical': 0.0, 'mean_word_length': 2.032626427406199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5220172', 'n_tokens_mistral': 525, 'n_tokens_neox': 491, 'n_words': 133}