1 |
efrain |
1 |
{{!
|
|
|
2 |
This file is part of Moodle - http://moodle.org/
|
|
|
3 |
Moodle is free software: you can redistribute it and/or modify
|
|
|
4 |
it under the terms of the GNU General Public License as published by
|
|
|
5 |
the Free Software Foundation, either version 3 of the License, or
|
|
|
6 |
(at your option) any later version.
|
|
|
7 |
Moodle is distributed in the hope that it will be useful,
|
|
|
8 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
9 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
10 |
GNU General Public License for more details.
|
|
|
11 |
You should have received a copy of the GNU General Public License
|
|
|
12 |
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
13 |
}}
|
|
|
14 |
{{!
|
|
|
15 |
@template mod_scorm/report_actionbar
|
|
|
16 |
Actions bar for the reports page UI.
|
|
|
17 |
Classes required for JS:
|
|
|
18 |
* none
|
|
|
19 |
Data attributes required for JS:
|
|
|
20 |
* none
|
|
|
21 |
Context variables required for this template:
|
|
|
22 |
* see mod/scorm/classes/output/actionbar.php
|
|
|
23 |
Example context (json):
|
|
|
24 |
{
|
|
|
25 |
"heading": "Heading",
|
|
|
26 |
"scormreports": {
|
|
|
27 |
"id": "url_select_test",
|
|
|
28 |
"options": [
|
|
|
29 |
{"name": "Basic Report", "value": "/mod/scorm/report.php?id=69&mode=basic"},
|
|
|
30 |
{"name": "Graph Report", "value": "/mod/scorm/report.php?id=69&mode=graphs"},
|
|
|
31 |
{"name": "Interactions Report", "value": "/mod/scorm/report.php?id=69&mode=interactions"},
|
|
|
32 |
{"name": "Objectives Report", "value": "/mod/scorm/report.php?id=69&mode=objectives"}
|
|
|
33 |
]
|
|
|
34 |
},
|
|
|
35 |
"candownload": true,
|
|
|
36 |
"downloadods": "http://localhost/moodle/mod/scorm/report.php?id=143&mode=basic&attemptsmode=0&sesskey=AmfcC7riSb&download=ODS",
|
|
|
37 |
"downloadexcel": "http://localhost/moodle/mod/scorm/report.php?id=143&mode=basic&attemptsmode=0&sesskey=AmfcC7riSb&download=Excel",
|
|
|
38 |
"downloadtext": "http://localhost/moodle/mod/scorm/report.php?id=143&mode=basic&attemptsmode=0&sesskey=AmfcC7riSb&download=CSV"
|
|
|
39 |
}
|
|
|
40 |
}}
|
|
|
41 |
<div class="container-fluid tertiary-navigation">
|
|
|
42 |
<div class="row">
|
|
|
43 |
{{#scormreports}}
|
|
|
44 |
<div class="navitem">
|
|
|
45 |
{{>core/url_select}}
|
|
|
46 |
</div>
|
|
|
47 |
{{/scormreports}}
|
|
|
48 |
{{#candownload}}
|
|
|
49 |
<div class="navitem ml-auto">
|
|
|
50 |
<div class="dropdown">
|
|
|
51 |
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
52 |
{{#str}} download {{/str}}
|
|
|
53 |
</a>
|
|
|
54 |
|
|
|
55 |
<div class="dropdown-menu" aria-labelledby="dropdownMenuLink">
|
|
|
56 |
<a class="dropdown-item" href="{{ downloadods }}">{{#str}} downloadods {{/str}}</a>
|
|
|
57 |
<a class="dropdown-item" href="{{ downloadexcel }}">{{#str}} downloadexcel {{/str}}</a>
|
|
|
58 |
<a class="dropdown-item" href="{{ downloadtext }}">{{#str}} downloadtext {{/str}}</a>
|
|
|
59 |
</div>
|
|
|
60 |
</div>
|
|
|
61 |
</div>
|
|
|
62 |
{{/candownload}}
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|