 ###
 TODO:
 
-- [ ] (0:45?) (0:37) delete student; show deleted students
-- [ ] (0:45?) delete assignment; show deleted assignments
 - [ ] (1:00?) help page -- integrate info
 - [ ] (1:00?) changing title/description needs to change it for all projects
 - [ ] (1:00?) clean up after flux/react when closing the editor

        add_searching : false      # whether or not it is asking the backend for the result of a search
        add_select    : undefined  # contents to put in the selection box after getting search result back
        add_selected  : ''         # specific path name in selection box that was selected

    clear_and_focus_assignment_search_input: ->
        @setState(search : '')

    delete_assignment: ->
        @props.flux.getActions(@props.name).delete_assignment(@props.assignment)

    undelete_assignment: ->
        @props.flux.getActions(@props.name).undelete_assignment(@props.assignment)

    render_delete_button: ->
        if @props.assignment.get('deleted')
            <Button onClick={@undelete_assignment}>
                <Icon name="trash-o" /> Undelete
            </Button>
        else
            <Button onClick={@delete_assignment}>
                <Icon name="trash" /> Delete
            </Button>

    render_summary_line: ->
        <Row style={entry_style}>
            <Col md=4>
                <h5>
                    <a href='' onClick={(e)=>e.preventDefault();@setState(more:true)}>{@props.assignment.get('path')}</a>
                    {<b> (deleted)</b> if @props.assignment.get('deleted')}
                </h5>
            </Col>
        </Row>

