       @listController.addItem member
 
     @listController.lazyLoader.hide()
+    @searchContainer.show()

kd                   = require 'kd'
KDView               = kd.View
MemberItemView       = require './memberitemview'
KDListItemView       = kd.ListItemView
KDCustomHTMLView     = kd.CustomHTMLView
KDListViewController = kd.ListViewController


module.exports = class TeamMembersCommonView extends KDView


    @skip = 0

    @createSearchView()
    @createListController()
    @fetchMembers()


  createSearchView: ->

    @addSubView @searchContainer = new KDCustomHTMLView
      cssClass: 'search hidden'
      partial : 'Sort by'

    @searchContainer.addSubView new KDSelectBox
      defaultValue  : 'nickname'
      selectOptions : [
        { title     : 'Screen name',  value : 'fullname'  }
        { title     : 'Nickname',     value : 'nickname'  }
      ]
      callback      : (value) ->

    @searchContainer.addSubView new KDHitEnterInputView
      type                    : 'text'
      placeholder             : 'Find by name/username'
      validationNotifications : yes
      validate                :
        rules                 :
          required            : yes
        messages              :
          required            : 'Please enter a name or username'
      callback                : -> kd.log ',,,,,,,,,,,,,,,,,,'


  createListController: ->
