VRFS-3359 : Cleanup
This commit is contained in:
parent
949bf6ec25
commit
ec7c4e3e4d
|
|
@ -32,7 +32,6 @@ logger = context.JK.logger
|
|||
|
||||
for instrument in @instruments
|
||||
nm = "check_#{instrument.id}"
|
||||
|
||||
checkedStr = if @isChecked(instrument.id) then "checked" else ""
|
||||
instrument_options.push `<div className='checkItem checkItemInstrument'><input type='checkbox' name={nm} data-instrument-id={instrument.id} defaultChecked={checkedStr}></input><label htmlFor={nm}>{instrument.description}</label></div>`
|
||||
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ rest = window.JK.Rest()
|
|||
"basics"
|
||||
|
||||
onTeacherStateChanged: (changes) ->
|
||||
$root = jQuery(this.getDOMNode())
|
||||
$root = jQuery(this.getDOMNode())
|
||||
unless this.handleErrors(changes)
|
||||
teacher = changes.teacher
|
||||
teacher = changes.teacher
|
||||
this.setState({
|
||||
#validate_basics: true,
|
||||
instruments: teacher.instruments
|
||||
|
|
@ -29,11 +29,9 @@ rest = window.JK.Rest()
|
|||
$root = jQuery(this.getDOMNode())
|
||||
this.setState({
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
handleListChange: (listName, selectedItems)->
|
||||
"#{listName}": selectedItems
|
||||
})
|
||||
handleListChange: (listName, selectedItems)->
|
||||
this.setState({
|
||||
"#{listName}": selectedItems
|
||||
});
|
||||
|
|
@ -41,7 +39,7 @@ rest = window.JK.Rest()
|
|||
|
||||
navDestination: (instructions) ->
|
||||
navTo=null
|
||||
if instructions?
|
||||
if instructions?
|
||||
if instructions.direction=="cancel"
|
||||
navTo = @teacherSetupSource()
|
||||
else if instructions.direction=="back"
|
||||
|
|
@ -51,11 +49,11 @@ rest = window.JK.Rest()
|
|||
|
||||
navTo
|
||||
|
||||
handleNav: (e) ->
|
||||
handleNav: (e) ->
|
||||
navTo = this.navDestination(e)
|
||||
teacherActions.change.trigger(this.state, {navTo: navTo})
|
||||
|
||||
render: () ->
|
||||
render: () ->
|
||||
instrumentsTaughtCheckboxes = []
|
||||
#instrumentsTaughtCheckboxes.push(`<input />`)
|
||||
|
||||
|
|
@ -70,27 +68,27 @@ rest = window.JK.Rest()
|
|||
<div className="teacher-quarter-column left">
|
||||
<div className="teacher-field" name="instruments">
|
||||
<strong>Instruments Taught</strong>
|
||||
|
||||
|
||||
<InstrumentSelectorList onInstrumentsChanged={this.handleListChange} selectedItems={this.state.instruments}/>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div className="teacher-quarter-column left">
|
||||
<div className="teacher-field" name="subjects">
|
||||
<strong>Music Subjects Taught</strong>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div className="teacher-quarter-column left">
|
||||
<div className="teacher-field" name="genres">
|
||||
<strong>Genres Taught</strong>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div className="teacher-quarter-column left">
|
||||
<div className="teacher-field" name="languages">
|
||||
<strong>Languages Spoken</strong>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<TeacherSetupNav handleNav={this.handleNav}></TeacherSetupNav>
|
||||
|
|
|
|||
Loading…
Reference in New Issue