{{! This file is part of Moodle - http://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 qbank_previewquestion/preview_question The preview page for the question type preview. * actionurl - Url to post to * session - Moodle session * slot - The identifying number of the first question that was added to this usage * question - The html of the actual question from the engine * questionicon - The icon of the question type * questiontitle - The name of the question * versiontitle - The string for displaying the version * questionidumber - The idnumber of the question * restartdisabled - The attributes to enable or disable the button, same for finishdisabled and filldisabled * techinfo - Technical information like fraction, state, behaviour etc * exporttoxml - Link to export the question to xml * redirecturl - Url to the base view * comments - Comments api html * extrapreviewelements - Any plugin implementing the callback and sending extra html to view something in the preview page Example context (json): { "actionurl": "/", "session": "E2PwCfrnzz", "slot": "1", "question": "
question html
", "questionicon": "", "questiontitle": "Question title", "versiontitle": { "versioninfo": "Version 3 (latest)" }, "questionidumber": "qidnumber1", "restartdisabled": "disabled='disabled'", "finishdisabled": "disabled='disabled'", "filldisabled": "disabled='disabled'", "techinfo": "
Behaviour being used: Deferred feedback
", "redirecturl": "/", "exporttoxml": "Download this question in Moodle XML format", "comments": "html from comments api", "extrapreviewelements": "
callback to get html from plugins need to show info in preview
" } }}

{{{questionicon}}}

{{questiontitle}}

{{#versiontitle}} {{>core_question/question_version_info}} {{/versiontitle}}

{{#newerversion}}
{{{newerversion}}}
{{/newerversion}}
ID number {{questionidumber}}

{{{question}}}
{{^redirect}} {{/redirect}} {{#redirect}} {{#str}} closepreview, question{{/str}} {{/redirect}}

{{#comments}}
{{{comments}}}
{{{options}}} {{/comments}} {{^comments}} {{{options}}} {{/comments}} {{{techinfo}}} {{#extrapreviewelements}} {{{extrapreviewelements}}} {{/extrapreviewelements}}