compute grades after exam (in teacher's view)
factorize redundant code in course.js, monitor.js and (TOWRITE) grade.js
(showing students list + grades or papers)
+monitoring: main teacher should not be asked for pwd, and button "send feedback" hidden for others
-----
if (!!s.errmsg)
return alert(s.errmsg);
this.assessment = s.assessment;
- this.answers.inputs = s.assessment.questions.map( q => { return q.answer; });
+ this.answers.inputs = s.assessment.questions.map( q => {
+ let input = _(q.options.length).times( _.constant(false) );
+ q.answer.forEach( idx => { input[idx] = true; });
+ return input;
+ });
this.students = s.students;
this.stage = 1;
socket = io.connect("/", {