context = window teacherActions = window.JK.Actions.Teacher logger = context.JK.logger rest = window.JK.Rest() @TeacherSetupBasics = React.createClass({ mixins: [ @TeacherSetupMixin, Reflux.listenTo(@AppStore,"onAppInit"), Reflux.listenTo(TeacherStore, "onTeacherStateChanged") ] getInitialState: () -> {} screenName: () -> "basics" onTeacherStateChanged: (changes) -> $root = jQuery(this.getDOMNode()) unless this.handleErrors(changes) teacher = changes.teacher this.setState(teacher) captureFormState: (changes) -> $root = jQuery(this.getDOMNode()) this.setState({ }); handleListChange: (listName, selectedObjects)-> logger.debug("handleListChange:", listName, selectedObjects) this.setState({ "#{listName}": selectedObjects }); handleFieldChange: (fieldName, value)-> logger.debug("handleFieldChange:", fieldName, value) this.setState({ "#{fieldName}": value }); navDestination: (instructions) -> navTo=null if instructions? if instructions.direction=="cancel" navTo = @teacherSetupSource() else if instructions.direction=="back" navTo = @teacherSetupDestination("introduction") else if instructions.direction=="next" navTo = @teacherSetupDestination("experience") navTo handleNav: (e) -> navTo = this.navDestination(e) this.state.validate_basics = true teacherActions.change.trigger(this.state, {navTo: navTo, instructions:e}) render: () -> # Render the following: # Instruments # Subjects # Genres # Languages # All lists will take a list of selected keys, # and will otherwise self-render the available `

Instruments Taught:

Music Subjects Taught:

Genres Taught:

Languages Spoken:


Student Levels Taught:

Student Ages Taught:

to
` })