1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
|
|
|
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.
|
|
|
8 |
|
|
|
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.
|
|
|
13 |
|
|
|
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/>.
|
|
|
16 |
}}
|
|
|
17 |
{{!
|
|
|
18 |
@template mod_lesson/report_action_menu
|
|
|
19 |
|
|
|
20 |
Navigation element for different reports.
|
|
|
21 |
|
|
|
22 |
Classes required for JS:
|
|
|
23 |
* none
|
|
|
24 |
|
|
|
25 |
Context variables required for this template:
|
|
|
26 |
* see mod/lesson/classes/output/report_action_menu.php
|
|
|
27 |
|
|
|
28 |
Example context (json):
|
|
|
29 |
{
|
|
|
30 |
"id": "url_select_test",
|
|
|
31 |
"action": "https://example.com/post",
|
|
|
32 |
"formid": "url_select_form",
|
|
|
33 |
"sesskey": "sesskey",
|
|
|
34 |
"label": "core/url_select",
|
|
|
35 |
"helpicon": {
|
|
|
36 |
"title": "Help with something",
|
|
|
37 |
"text": "Help with something",
|
|
|
38 |
"url": "http://example.org/help",
|
|
|
39 |
"linktext": "",
|
|
|
40 |
"icon":{
|
|
|
41 |
"extraclasses": "iconhelp",
|
|
|
42 |
"attributes": [
|
|
|
43 |
{"name": "src", "value": "../../../pix/help.svg"},
|
|
|
44 |
{"name": "alt", "value": "Help icon"}
|
|
|
45 |
]
|
|
|
46 |
}
|
|
|
47 |
},
|
|
|
48 |
"showbutton": "Go",
|
|
|
49 |
"options": [{
|
|
|
50 |
"name": "Group 1", "isgroup": true, "options":
|
|
|
51 |
[
|
|
|
52 |
{"name": "Item 1", "isgroup": false, "value": "1"},
|
|
|
53 |
{"name": "Item 2", "isgroup": false, "value": "2"}
|
|
|
54 |
]},
|
|
|
55 |
{"name": "Group 2", "isgroup": true, "options":
|
|
|
56 |
[
|
|
|
57 |
{"name": "Item 3", "isgroup": false, "value": "3"},
|
|
|
58 |
{"name": "Item 4", "isgroup": false, "value": "4"}
|
|
|
59 |
]}],
|
|
|
60 |
"disabled": false,
|
|
|
61 |
"title": "Some cool title",
|
|
|
62 |
"headinglevel": 3,
|
|
|
63 |
"heading": "Some heading"
|
|
|
64 |
}
|
|
|
65 |
|
|
|
66 |
}}
|
|
|
67 |
<div class="container-fluid tertiary-navigation">
|
|
|
68 |
{{#reportselect}}
|
|
|
69 |
<div class="row">
|
|
|
70 |
<div class="navitem">
|
|
|
71 |
{{>core/url_select}}
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
{{/reportselect}}
|
|
|
75 |
</div>
|
|
|
76 |
<h{{headinglevel}}>{{heading}}</h{{headinglevel}}>
|