Advertisement
sarjona

question/bank/previewquestion/templates/preview_question.mustache CiBoT errors

Jan 28th, 2022
963
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/question/bank/previewquestion/templates/preview_question.mustache b/question/bank/previewquestion/templates/preview_question.mustache
  2. index c5c95f78cc4..86b075a91d5 100644
  3. --- a/question/bank/previewquestion/templates/preview_question.mustache
  4. +++ b/question/bank/previewquestion/templates/preview_question.mustache
  5. @@ -22,6 +22,10 @@
  6.      * session - Moodle session
  7.      * slot - The identifying number of the first question that was added to this usage
  8.      * question - The html of the actual question from the engine
  9. +    * questionicon - TODO: add definition
  10. +    * questiontitle - TODO: add definition
  11. +    * versiontitle - TODO: add definition
  12. +    * questionidumber - TODO: add definition
  13.      * restartdisabled - The attributes to enable or disable the button, same for finishdisabled and filldisabled
  14.      * techinfo - Technical information like fraction, state, behaviour etc
  15.      * exporttoxml - Link to export the question to xml
  16. @@ -31,22 +35,22 @@
  17.  
  18.      Example context (json):
  19.      {
  20. -        "previewdata": [
  21. -          {
  22. -                "actionurl": "/",
  23. -                "session": "E2PwCfrnzz",
  24. -                "slot": "1",
  25. -                "question": "<div>question html</div>",
  26. -                "restartdisabled": "disabled='disabled'",
  27. -                "finishdisabled": "disabled='disabled'",
  28. -                "filldisabled": "disabled='disabled'",
  29. -                "techinfo": "<div>Behaviour being used: Deferred feedback</div>",
  30. -                "redirecturl": "/",
  31. -                "exporttoxml": "Download this question in Moodle XML format",
  32. -                "comments": "html from comments api",
  33. -                "extrapreviewelements": "<div>callback to get html from plugins need to show info in preview</div>"
  34. -          }
  35. -        ]
  36. +        "actionurl": "/",
  37. +        "session": "E2PwCfrnzz",
  38. +        "slot": "1",
  39. +        "question": "<div>question html</div>",
  40. +        "questionicon": "<i class='icon fa fa-search-plus fa-fw' title='Preview question' aria-label='Preview question'></i>",
  41. +        "questiontitle": "Question title",
  42. +        "versiontitle": "Version 3 (latest)",
  43. +        "questionidumber": "qidnumber1",
  44. +        "restartdisabled": "disabled='disabled'",
  45. +        "finishdisabled": "disabled='disabled'",
  46. +        "filldisabled": "disabled='disabled'",
  47. +        "techinfo": "<div>Behaviour being used: Deferred feedback</div>",
  48. +        "redirecturl": "/",
  49. +        "exporttoxml": "Download this question in Moodle XML format",
  50. +        "comments": "html from comments api",
  51. +        "extrapreviewelements": "<div>callback to get html from plugins need to show info in preview</div>"
  52.      }
  53.  }}
  54.  <form id="responseform" method="post" action="{{{actionurl}}}" enctype="multipart/form-data" autocomplete="off">
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement