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

        </BS.Button>
    </BS.OverlayTrigger>

module.exports = RenameCourse
  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
