| 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 core_admin/setting_manage_plugins
|
|
|
19 |
|
|
|
20 |
Admin plugin management template.
|
|
|
21 |
|
|
|
22 |
Context variables required for this template:
|
|
|
23 |
* plugins
|
|
|
24 |
|
|
|
25 |
Example context (json):
|
|
|
26 |
{
|
|
|
27 |
"infocolumnname": "Food",
|
|
|
28 |
"plugins": [
|
|
|
29 |
{
|
|
|
30 |
"enabled": true,
|
|
|
31 |
"plugin": "Forum",
|
|
|
32 |
"info": "Lettuce",
|
|
|
33 |
"movedownlink": "#",
|
|
|
34 |
"toggletarget": false,
|
|
|
35 |
"togglelink": "#",
|
|
|
36 |
"settingslink": "#",
|
|
|
37 |
"uninstalllink": "#"
|
|
|
38 |
},
|
|
|
39 |
{
|
|
|
40 |
"enabled": false,
|
|
|
41 |
"plugin": "Database",
|
|
|
42 |
"info": "Cheese",
|
|
|
43 |
"moveuplink": "#",
|
|
|
44 |
"toggletarget": true,
|
|
|
45 |
"togglelink": "#",
|
|
|
46 |
"settingslink": "#",
|
|
|
47 |
"uninstalllink": "#"
|
|
|
48 |
}
|
|
|
49 |
]
|
|
|
50 |
}
|
|
|
51 |
}}
|
|
|
52 |
<table class="admintable generaltable">
|
|
|
53 |
<thead>
|
|
|
54 |
<tr>
|
|
|
55 |
<th class="header">{{#str}}name, moodle{{/str}}</th>
|
|
|
56 |
{{#infocolumnname}}
|
|
|
57 |
<th class="header">{{infocolumnname}}</th>
|
|
|
58 |
{{/infocolumnname}}
|
|
|
59 |
<th class="header">{{#str}}order, moodle{{/str}}</th>
|
|
|
60 |
<th class="header">{{#str}}isenabled, plugin{{/str}}</th>
|
|
|
61 |
<th class="header">{{#str}}settings, moodle{{/str}}</th>
|
|
|
62 |
<th class="header">{{#str}}uninstall, plugin{{/str}}</th>
|
|
|
63 |
</tr>
|
|
|
64 |
</thead>
|
|
|
65 |
<tbody>
|
|
|
66 |
{{#plugins}}
|
|
|
67 |
<tr {{^enabled}}class="dimmed_text"{{/enabled}}>
|
|
|
68 |
<td>{{plugin}}</td>
|
|
|
69 |
{{#infocolumnname}}
|
|
|
70 |
<td>
|
|
|
71 |
{{info}}
|
|
|
72 |
</td>
|
|
|
73 |
{{/infocolumnname}}
|
|
|
74 |
<td class="text-nowrap">
|
|
|
75 |
{{#moveuplink}}
|
|
|
76 |
<a href="{{{moveuplink}}}">
|
|
|
77 |
{{#pix}}t/up, moodle, {{#str}} up, moodle {{/str}}{{/pix}}
|
|
|
78 |
</a>
|
|
|
79 |
{{/moveuplink}}
|
|
|
80 |
{{^moveuplink}}
|
|
|
81 |
{{#pix}}spacer, moodle{{/pix}}
|
|
|
82 |
{{/moveuplink}}
|
|
|
83 |
|
|
|
84 |
{{#movedownlink}}
|
|
|
85 |
<a href="{{{movedownlink}}}">
|
|
|
86 |
{{#pix}}t/down, moodle, {{#str}} down, moodle {{/str}}{{/pix}}
|
|
|
87 |
</a>
|
|
|
88 |
{{/movedownlink}}
|
|
|
89 |
{{^movedownlink}}
|
|
|
90 |
{{#pix}}spacer, moodle{{/pix}}
|
|
|
91 |
{{/movedownlink}}
|
|
|
92 |
</td>
|
|
|
93 |
<td>
|
|
|
94 |
<a href="{{{togglelink}}}">
|
|
|
95 |
{{#toggletarget}}
|
|
|
96 |
{{#pix}}i/show, moodle, {{#str}} enable, moodle {{/str}}{{/pix}}
|
|
|
97 |
{{/toggletarget}}
|
|
|
98 |
{{^toggletarget}}
|
|
|
99 |
{{#pix}}i/hide, moodle, {{#str}} disable, moodle {{/str}}{{/pix}}
|
|
|
100 |
{{/toggletarget}}
|
|
|
101 |
</a>
|
|
|
102 |
</td>
|
|
|
103 |
<td>
|
|
|
104 |
{{#settingslink}}
|
|
|
105 |
<a href="{{{settingslink}}}">{{#str}}settings,plugin{{/str}}</a>
|
|
|
106 |
{{/settingslink}}
|
|
|
107 |
</td>
|
|
|
108 |
<td>
|
|
|
109 |
{{#uninstalllink}}
|
|
|
110 |
<a href="{{{uninstalllink}}}">{{#str}}uninstall,plugin{{/str}}</a>
|
|
|
111 |
{{/uninstalllink}}
|
|
|
112 |
</td>
|
|
|
113 |
</tr>
|
|
|
114 |
{{/plugins}}
|
|
|
115 |
</tbody>
|
|
|
116 |
</table>
|