Closed christianp closed 6 months ago
I'd be up for giving this a go, have just set up the local instance so I'll have a toy around if no-one else has started.
Thanks! Let me know if you get stuck.
There are two halves to this:
In the Numbas editor, you'll need to add some settings to the Exam object, and make sure they get saved and loaded.
this.results_options = {showquestions: ko.observable(true), showadvice: ko.observable(true)}
Then, in this repo:
exam.py
, load the options in Exam.fromDATA and produce some corresponding XML in Exam.toxml (yes, it's a bit redundant to have to translate JSON to XML, but there are historical reasons)runtime/scripts/exam.js
, load the options from the XML.Implemented, thanks to @stuwilmur!
Particularly, David Wishart wants the option not to show the questions and advice on the printed version of the results page (they're hidden in the screen stylesheet).
There could be options to show/hide each of the other sections: student info, score breakdown, timing.