         </thead>
         <tbody></tbody>
       </table>
-
       <div class="form-actions navbar-fixed-bottom">
         <div class="btn-group">
           <a class="btn btn-primary" id="new-team">


  showModal : (modalView) ->

    if @$el.find("input[type=checkbox]:checked").length > 0
      view = new modalView({userCollection : @collection})
      view.render()
      @ui.modalWrapper.html(view.el)

      view.$el.modal("show")

    else
      Toast.error("No user is selected.")

        isEditable: true
    )

    #fetch the logged-in user's name
    @user = $.ajax(
      url: "/api/user"
    )

  addNewTeam : ->


    @user.then(
      (userData) =>
        team =
          name : @ui.inputName.val()
          owner : "#{userData.firstName} #{userData.lastName}"
          roles : [{ name : "admin" }, { name : "user" }]
          isEditable : true
