 
     @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: ->

      @listController.addItem member

    @listController.lazyLoader.hide()

kd                   = require 'kd'
KDView               = kd.View
KDSelectBox          = kd.SelectBox
KDListItemView       = kd.ListItemView
KDCustomHTMLView     = kd.CustomHTMLView
KDListViewController = kd.ListViewController
KDHitEnterInputView  = kd.HitEnterInputView

MemberItemView = require './memberitemview'


module.exports = class TeamMembersCommonView extends KDView
