               tasks: flow.tasks,
               phase_id: flow.id,
               paper: @state.paper
+              removeCard: @removeCard
             }
       ))
 

        (i {className: 'glyphicon glyphicon-plus'}))

    componentDidMount: ->
      $(this.getDOMNode()).tooltip()

  Card: React.createClass
    displayName: "Card"

            {id: flow.id, position: flow.position}
        success: (data)=>
          @setState flows: @state.flows

    removeCard: (taskId, phaseId) ->
      $.ajax
        url: 'tasks/' + taskId
        method: 'DELETE'
        success: =>
          newFlows = @state.flows.slice(0)
          flow = _.findWhere(newFlows, {id: phaseId})
          flow.tasks = _.reject flow.tasks, (task) ->
            task.taskId == taskId
          @setState flows: newFlows

    addColumn: (index) ->
      column = {
