Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/question/bank/previewquestion/templates/preview_question.mustache b/question/bank/previewquestion/templates/preview_question.mustache
- index c5c95f78cc4..86b075a91d5 100644
- --- a/question/bank/previewquestion/templates/preview_question.mustache
- +++ b/question/bank/previewquestion/templates/preview_question.mustache
- @@ -22,6 +22,10 @@
- * 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 - TODO: add definition
- + * questiontitle - TODO: add definition
- + * versiontitle - TODO: add definition
- + * questionidumber - TODO: add definition
- * 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
- @@ -31,22 +35,22 @@
- Example context (json):
- {
- - "previewdata": [
- - {
- - "actionurl": "/",
- - "session": "E2PwCfrnzz",
- - "slot": "1",
- - "question": "<div>question html</div>",
- - "restartdisabled": "disabled='disabled'",
- - "finishdisabled": "disabled='disabled'",
- - "filldisabled": "disabled='disabled'",
- - "techinfo": "<div>Behaviour being used: Deferred feedback</div>",
- - "redirecturl": "/",
- - "exporttoxml": "Download this question in Moodle XML format",
- - "comments": "html from comments api",
- - "extrapreviewelements": "<div>callback to get html from plugins need to show info in preview</div>"
- - }
- - ]
- + "actionurl": "/",
- + "session": "E2PwCfrnzz",
- + "slot": "1",
- + "question": "<div>question html</div>",
- + "questionicon": "<i class='icon fa fa-search-plus fa-fw' title='Preview question' aria-label='Preview question'></i>",
- + "questiontitle": "Question title",
- + "versiontitle": "Version 3 (latest)",
- + "questionidumber": "qidnumber1",
- + "restartdisabled": "disabled='disabled'",
- + "finishdisabled": "disabled='disabled'",
- + "filldisabled": "disabled='disabled'",
- + "techinfo": "<div>Behaviour being used: Deferred feedback</div>",
- + "redirecturl": "/",
- + "exporttoxml": "Download this question in Moodle XML format",
- + "comments": "html from comments api",
- + "extrapreviewelements": "<div>callback to get html from plugins need to show info in preview</div>"
- }
- }}
- <form id="responseform" method="post" action="{{{actionurl}}}" enctype="multipart/form-data" autocomplete="off">
Advertisement
Advertisement
Advertisement
RAW Paste Data
Copied
Advertisement