         </BS.Button>
     </BS.OverlayTrigger>
 
-module.exports = RenameCourse+module.exports = RenameCourse

BS = require 'react-bootstrap'
_ = require 'underscore'
{CourseStore, CourseActions} = require '../../flux/course'
{TutorInput} = require '../tutor-input'
classnames = require 'classnames'


  performUpdate: ->
    unless @state.invalid
      CourseActions.save(@props.courseId, course: {name: @state.course_name})
      CourseStore.once 'saved', ->
        @refs.overlay.hide()

  renderForm: ->
    formClasses = classnames 'modal-body', 'teacher-edit-course-form', 'is-invalid-form': @state?.invalid
