 
   render: ->
     plan = TaskPlanStore.get(@props.planId)
-
     if @state.showingPeriods then @renderShownPeriods(plan) else @renderHiddenPeriods(plan)

    TaskPlanActions.updateDescription(id, desc)

  renderTaskPlanRow: (plan) ->
    <tr key={plan.target_id}>
      <td>{plan.name}</td>
      <td>
        <TutorDateInput


  setOpensAt: (value, period) ->
    {planId} = @props
    TaskPlanActions.updateOpensAt(planId, value, period?.id)

  setDueAt: (value, period) ->
    {planId} = @props
    TaskPlanActions.updateDueAt(planId, value, period?.id)

  togglePeriodsDisplay: (ev) ->
    @setState(showingPeriods: not ev.target.checked)
