sarjona

question/bank/bulkmove/templates/bulk_move.mustache - Round 2

Nov 19th, 2021 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.48 KB | None | 0 0
  1. diff --git a/question/bank/bulkmove/templates/bulk_move.mustache b/question/bank/bulkmove/templates/bulk_move.mustache
  2. index b6eed24c7e2..692f71eedbe 100644
  3. --- a/question/bank/bulkmove/templates/bulk_move.mustache
  4. +++ b/question/bank/bulkmove/templates/bulk_move.mustache
  5. @@ -18,14 +18,15 @@
  6.      @template qbank_bulkmove/bulk_move
  7.  
  8.      The move form to move selected questions.
  9. +
  10. +    Context variables required for this template:
  11.      * categorydropdown - dropdown html from the managecategories plugin for the list of categories
  12.      * moveurl - the url to post the selected category
  13.      * returnurl - the base page to return to
  14.  
  15.      Example context (json):
  16.      {
  17. -        "categorydropdown": "<optgroup label='Category: Category 1'><option value='4,3'>Default for Category 1</option></optgroup>",
  18. -        "moveurl": "/question/bank/bulkmove/move.php?courseid=2",
  19. +        "categorydropdown": "<label class='accesshide' for='id_movetocategory'>Question category</label><select id='id_movetocategory' class='select custom-select custom-select' data-action='toggle' data-togglegroup='qbank' data-toggle='action' name='category'><optgroup label='Course: Course 1'><option value='69,2309'>Default for Course 1 (12)</option><optgroup label='Category: Category 1'><option value='24,3'>Default for Category 1</option></optgroup><optgroup label='System'><option value='26,1'>Default for System</option></optgroup></select>",
  20.          "returnurl": "/question/edit.php?courseid=2"
  21.      }
  22.  }}
Add Comment
Please, Sign In to add comment