codecombat/app/views/courses/CoursesNotAssignedModal.coffee
Scott Erickson ef0547f72a Simplify applying licenses
In TeacherClassView, when a teacher assigns a paid course to any unenrolled
student, the view automatically enrolls those students, rather than requiring
the teacher to enroll those students manually first. Update copy throughout.

Also add back (smaller) padding to progress dots in TeacherClassView.
2016-08-23 10:43:31 -07:00

9 lines
349 B
CoffeeScript

ModalView = require 'views/core/ModalView'
template = require 'templates/courses/courses-not-assigned-modal'
module.exports = class CoursesNotAssignedModal extends ModalView
id: 'courses-not-assigned-modal'
template: template
initialize: (options) ->
_.assign(@, _.pick(options, 'selected', 'totalSpotsAvailable', 'unenrolledStudents'))