             <Button onClick={@show_edit_name_dialogue}>
                 <Icon name='address-card-o'/> Edit student...
             </Button>
+
+    cancel_student_edit: ->
+        @setState(@getInitialState())
 
     save_student_name: ->
         @actions(@props.name).set_internal_student_name(@props.student, @state.edited_first_name, @state.edited_last_name)

        edited_last_name  : @props.student_name.last

    on_key_down: (e) ->
        if e.keyCode == 13
            @save_student_name()

    toggle_show_more: (e) ->
        e.preventDefault()

                <Button onClick={@save_student_name} bsStyle='success' disabled={disable_save}>
                    <Icon name='save'/> Save
                </Button>
                <Button onClick={@cancel_student_edit} >
                    Cancel
                </Button>
            </ButtonGroup>
