MDL-77603 theme_boost: remove Bootstrap version reference
[moodle.git] / question / templates / qbank_action_menu.mustache
blob07bbab15e58d108e28ba563f38e304ae5244d82c
1 {{!
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/>.
17 {{!
18     @template core_question/qbank_action_menu
20     Question bank tertiary navigtion.
22     Classes required for JS:
23     * none
25     Context variables required for this template:
26     * see question/classes/output/qbank_actionbar.php
28     Example context (json):
29     {
30         "questionbankselect": {
31             "action": "http://localhost/moodle/course/jumpto.php",
32             "classes": "urlselect",
33             "formid": "questionbankaction",
34             "id": "url_select61a85bc543dca7",
35             "label": "Question bank tertiary navigation",
36             "options": [{
37                     "name": "Questions",
38                     "selected": true,
39                     "value": "/question/edit.php?courseid=7"
40                 },
41                 {
42                     "name": "Categories",
43                     "selected": false,
44                     "value": "/question/bank/managecategories/category.php?courseid=7"
45                 },
46                 {
47                     "name": "Import",
48                     "selected": false,
49                     "value": "/question/bank/importquestions/import.php?courseid=7"
50                 },
51                 {
52                     "name": "Export",
53                     "selected": false,
54                     "value": "/question/bank/exportquestions/export.php?courseid=7"
55                 }
56             ]
57         },
58         "addcategory": "http://localhost/moodle/question/bank/managecategories/addcategory.php?cmid=71"
59     }
61 <div class="container-fluid tertiary-navigation">
62     <div class="row">
63         {{#questionbankselect}}
64             <div class="navitem">
65                 {{>core/url_select}}
66             </div>
67         {{/questionbankselect}}
68         {{#addcategory}}
69             <div class="navitem">
70                 <a class="btn btn-primary ml-2" href="{{ addcategory }}">{{#str}}addcategory, question {{/str}}</a>
71             </div>
72         {{/addcategory}}
73     </div>
74 </div>