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 tool_admin_presets/preset_applications_list
|
|
|
19 |
|
|
|
20 |
Template for preset applications list.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"noapplications": 0,
|
|
|
25 |
"applications": {
|
|
|
26 |
"show": 1,
|
|
|
27 |
"caption": "Applied settings",
|
|
|
28 |
"settings": [
|
|
|
29 |
{
|
|
|
30 |
"timeapplied": "Thursday, 9 September 2021, 3:18 PM",
|
|
|
31 |
"user": "Joseba Cilarte",
|
|
|
32 |
"action": "http://example.com/admin/tool/admin_presets/index.php?action=rollback&mode=execute&id=43"
|
|
|
33 |
}
|
|
|
34 |
]
|
|
|
35 |
}
|
|
|
36 |
}
|
|
|
37 |
}}
|
|
|
38 |
|
|
|
39 |
{{^noapplications}}
|
|
|
40 |
<div id="id_nopresets" class="box py-3 generalbox">
|
|
|
41 |
<p id="{{uniqid}}">{{#str}}nopresets, tool_admin_presets{{/str}}</p>
|
|
|
42 |
</div>
|
|
|
43 |
{{/noapplications}}
|
|
|
44 |
{{#noapplications}}
|
|
|
45 |
<table class="generaltable boxaligncenter">
|
|
|
46 |
<caption class="accesshide">{{#str}}presetapplicationslisttable, tool_admin_presets{{/str}}</caption>
|
|
|
47 |
<thead>
|
|
|
48 |
<tr>
|
|
|
49 |
<th scope="col">{{#str}}timeapplied, tool_admin_presets{{/str}}</th>
|
|
|
50 |
<th scope="col">{{#str}}user{{/str}}</th>
|
|
|
51 |
<th scope="col">{{#str}}actions{{/str}}</th>
|
|
|
52 |
</tr>
|
|
|
53 |
</thead>
|
|
|
54 |
<tbody>
|
|
|
55 |
{{#applications}}
|
|
|
56 |
<tr>
|
|
|
57 |
<td>{{{timeapplied}}}</td>
|
|
|
58 |
<td>{{{user}}}</td>
|
|
|
59 |
<td><a href="{{action}}">{{#str}}rollback, tool_admin_presets{{/str}}</a></td>
|
|
|
60 |
</tr>
|
|
|
61 |
{{/applications}}
|
|
|
62 |
</tbody>
|
|
|
63 |
</table>
|
|
|
64 |
{{/noapplications}}
|