2 This file is part of Moodle - http://moodle.org/
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
18 @template mod_quiz/modal_add_random_question
20 Modal for adding a random question to a quiz activity.
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * title A cleaned string (use clean_text()) to display.
30 * body HTML content for the boday
32 Example context (json):
34 "title": "Example modal",
35 "body": "Some example content for the body"
41 <ul class="nav nav-tabs" role="tablist">
43 <a class="nav-link active"
45 href="#existing-category-{{uniqid}}"
47 {{#str}} existingcategory, mod_quiz {{/str}}
54 href="#new-category-{{uniqid}}"
56 {{#str}} newcategory, mod_quiz {{/str}}
61 <div class="tab-content" data-region="tab-content">
62 <div class="text-sm-center pt-5" data-region="loading-container">
65 <div class="tab-pane active pt-3"
66 id="existing-category-{{uniqid}}"
68 data-region="existing-category-container">
71 <div class="tab-pane pt-3"
72 id="new-category-{{uniqid}}"
74 data-region="new-category-container">