     getInitialState: ->
         more : false
         confirm_delete : false
+        edit_due : false
+        due_date : undefined
+
+    edit_due_date: ->
+        @setState(edit_due:true, due_date:@props.assignment.get('due_date'))
+
+    save_due_date: (e) ->
+        e?.preventDefault()
+        @props.flux.getActions(@props.name).set_due_date(@props.assignment, @state.due_date)
+        @setState(edit_due:false)
+
+    due_date_keydown: (e) ->
+        if e.keyCode == 27
+            @setState(edit_due:false)
+
+    render_due: ->
+        if @state.edit_due
+            <form onSubmit={@save_due_date}>
+                <Input autoFocus value={@state.due_date} ref='due_date_input'
+                       type='text' placeholder='Due date'
+                       onChange={=>@setState(due_date:@refs.due_date_input.getValue())}
+                       onKeyDown={@due_date_keydown}
+                />
+            </form>
+        else
+            due_date = @props.assignment.get('due_date')
+            <div>
+                {"#{due_date}"} <Button onClick={=>@edit_due_date()}>Edit</Button>
+            </div>
 
     render_more_header: ->
         <Row>
             <Col md=1>
                 {@render_close_button()}
             </Col>
-            <Col md=4>
+            <Col md=2>
                 <h5>{@render_path_link()}</h5>
             </Col>
-            <Col md=7>
+            <Col md=3>
+                Due: {@render_due()}
+            </Col>
+            <Col md=6>
                 <ButtonToolbar style={float:'right'}>
                     {@render_assign_button()}
                     {@render_collect_button()}

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


###
TODO:

- [x] (1:30?) (0:23) add due date as a field to assignments:
    - way to edit it (date selector...?)
    - use it to sort assignments
- [ ] (0:15?) uniformly sort assignments everywhere, efficiently.
- [ ] (1:30?) add student note field
    - let enter/edit it in the students page
    - show in the py and csv export
- [ ] (2:00?) make everything look pretty
        - triangles for show/hide assignment info like for students
