{{! This file is part of Moodle - https://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template qtype_stack/questionreportquestion Template purpose and description. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * none Example context (json): { "question": { "name": "Question name", "text": "Text", "deployedseeds": true, "hasvariants": true, "vars": "a1 : 1+rand(6);" }, "summary": { "prts": [ { "prtname": "prt1", "graph_svg": "<\/svg>", "graph_text": "<\/table>", "maxima": "maxima text", "sumout": "## prt1 (2)\n1 ( 50.00%); # = 0 | ATInt_generic. ATInt_var_SB_notSA. | prt1-1-F\n1 ( 50.00%); # = 0 | ATInt_generic. | prt1-1-F" } ], "tot": { "prt1": 2 } }, "notesummary": { "prts": [ { "prtname": "prt1", "graph_svg": "<\/svg>", "graph_text": "
<\/table>", "sumout": "## prt1 (2)\n2 (100.00%); # = 0\n1 ( 50.00%); ATInt_generic.\n1 ( 50.00%); ATInt_generic. ATInt_var_SB_notSA.\n2 (100.00%); prt1-1-F\n\n" } ] }, "variants": { "variants": [ { "seed": 399724897, "notes": "<\/span>", "notessumout": "## prt1 (1)\n1 (100.00%); # = 0 | ATInt_generic. ATInt_var_SB_notSA. | prt1-1-F\n1 (100.00%); ans1:34; \n\n\n", "anssumout": "## ans1 (1)\n### score\n1 (100.00%); 34\n\n" }, { "seed": 799651125, "notes": "<\/span>", "notessumout": "## prt1 (1)\n1 (100.00%); # = 0 | ATInt_generic. | prt1-1-F\n1 (100.00%); ans1:x-3; \n\n\n", "anssumout": "## ans1 (1)\n### score\n1 (100.00%); x-3\n\n" } ] }, "inputs": { "inputs": "## ans1 (2)\n### score\n1 ( 50.00%); 34\n1 ( 50.00%); x-3\n\n" }, "rawdata": { "rawdata": "\n# 4 (1)\n1 (100.00%); Seed: 399724897; ans1: 34 [score]; prt1: # = 0 | ATInt_generic. ATInt_var_SB_notSA. | prt1-1-F\n\n# 2 (1)\n1 (100.00%); Seed: 799651125; ans1: x-3 [score]; prt1: # = 0 | ATInt_generic. | prt1-1-F\n" }, "quizzes": [ { "quizcontextid": "102", "name": "Analysis input", "coursecontextid": "21", "coursename": "Course 1", "url": "ReportURL", "active": true } ], "general": { "testquestionlink": "DashboardURL", "previewquestionlink": "PreviewURL" } } }}

{{#str}} basicquestionreport, qtype_stack {{/str}}

{{question.name}}

{{^question.deployedseeds}} {{#hasvariants}}

{{#str}} questionnotdeployedyet, qtype_stack {{/str}}

{{/hasvariants}} {{/question.deployedseeds}}

{{#str}} selectquiz, qtype_stack {{/str}}: {{#pix}}y/loading, core, {{#str}}loading, tool_lp{{/str}}{{/pix}}

{{#str}} runquestiontests, qtype_stack {{/str}} {{#pix}} t/preview, core, {{#str}} preview, core {{/str}} {{/pix}}

{{#str}} questiontext, qtype_stack {{/str}}

{{{question.text}}}

{{#str}} questionvariables, qtype_stack {{/str}}

{{{question.vars}}}

{{#str}} basicreportnotes, qtype_stack {{/str}}

{{#summary.prts}}

{{prtname}}

{{maxima}}
{{{graph_svg}}} {{{graph_text}}}
{{#sumout}}
{{sumout}}
{{/sumout}} {{/summary.prts}}

{{#str}} basicreportnotessplit, qtype_stack {{/str}}

{{#notesummary.prts}}

{{prtname}}

{{{graph_svg}}} {{{graph_text}}}
{{sumout}}
{{/notesummary.prts}}

{{#str}} basicreportvariants, qtype_stack {{/str}}

{{#variants.variants}}
{{notessumout.sumheadline}}

{{{notes}}}

{{notessumout.sumout}}
{{anssumout}}
{{/variants.variants}}

{{#str}} basicreportinputsummary, qtype_stack {{/str}}

{{inputs.inputs}}

{{#str}} basicreportraw, qtype_stack {{/str}}

{{rawdata.rawdata}}