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/local/tables/old_and_new_value_settings_table
|
|
|
19 |
|
|
|
20 |
Template for setting comparison table, showing old and new values.
|
|
|
21 |
|
|
|
22 |
Context variables required for this template:
|
|
|
23 |
* beforeapplying - Whether the preset has been already applied or not.
|
|
|
24 |
|
|
|
25 |
Example context (json):
|
|
|
26 |
{
|
|
|
27 |
"caption": "Applied settings",
|
|
|
28 |
"settings": [
|
|
|
29 |
{
|
|
|
30 |
"plugin": "quiz",
|
|
|
31 |
"visiblename": "Decimal places in grades",
|
|
|
32 |
"oldvisiblevalue": "0",
|
|
|
33 |
"visiblevalue": "2"
|
|
|
34 |
}
|
|
|
35 |
]
|
|
|
36 |
}
|
|
|
37 |
}}
|
|
|
38 |
|
|
|
39 |
<table class="generaltable boxaligncenter admin_presets_applied">
|
|
|
40 |
<caption class="accesshide">{{{caption}}}</caption>
|
|
|
41 |
<thead>
|
|
|
42 |
<tr>
|
|
|
43 |
<th scope="col" class="w-50">{{#str}}settingname, tool_admin_presets{{/str}}</th>
|
|
|
44 |
<th scope="col" class="w-25">{{#str}}plugin{{/str}}</th>
|
|
|
45 |
<th scope="col">
|
|
|
46 |
{{^beforeapplying}}
|
|
|
47 |
{{#str}}oldvalue, tool_admin_presets{{/str}}
|
|
|
48 |
{{/beforeapplying}}
|
|
|
49 |
{{#beforeapplying}}
|
|
|
50 |
{{#str}}currentvalue, tool_admin_presets{{/str}}
|
|
|
51 |
{{/beforeapplying}}
|
|
|
52 |
</th>
|
|
|
53 |
<th scope="col">{{#str}}newvalue, tool_admin_presets{{/str}}</th>
|
|
|
54 |
</tr>
|
|
|
55 |
</thead>
|
|
|
56 |
<tbody>
|
|
|
57 |
{{#settings}}
|
|
|
58 |
<tr>
|
|
|
59 |
<td>{{{visiblename}}}</td>
|
|
|
60 |
<td>{{{plugin}}}</td>
|
|
|
61 |
<td>{{{oldvisiblevalue}}}</td>
|
|
|
62 |
<td>{{{visiblevalue}}}</td>
|
|
|
63 |
</tr>
|
|
|
64 |
{{/settings}}
|
|
|
65 |
</tbody>
|
|
|
66 |
</table>
|