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 comments.
|
|
|
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_dataprivacy/data_registry_compliance
|
|
|
19 |
|
|
|
20 |
Data registry main page.
|
|
|
21 |
|
|
|
22 |
Classes required for JS:
|
|
|
23 |
* none
|
|
|
24 |
|
|
|
25 |
Data attributes required for JS:
|
|
|
26 |
* none
|
|
|
27 |
|
|
|
28 |
Context variables required for this template:
|
|
|
29 |
* none
|
|
|
30 |
|
|
|
31 |
Example context (json):
|
|
|
32 |
{
|
|
|
33 |
"types" : {
|
|
|
34 |
"plugin_type_raw" : "mod",
|
|
|
35 |
"plugin_type" : "Activities and Modules"
|
|
|
36 |
}
|
|
|
37 |
}
|
|
|
38 |
}}
|
|
|
39 |
<div class="dataprivacy-main">
|
|
|
40 |
<h2>{{#str}}pluginregistrytitle, tool_dataprivacy{{/str}}</h2>
|
|
|
41 |
<p>{{#str}}explanationtitle, tool_dataprivacy{{/str}}</p>
|
|
|
42 |
<div class="border-bottom pb-3 mb-4">
|
|
|
43 |
<div class="d-inline-flex align-items-center flex-wrap w-100 my-1">
|
|
|
44 |
<span class="mr-2 my-0">{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
|
|
|
45 |
<div class="small">{{#str}}requiresattentionexplanation, tool_dataprivacy{{/str}}</div>
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
<div class="d-inline-flex align-items-center flex-wrap w-100 my-1">
|
|
|
49 |
<span class="mr-2 my-0 badge badge-info">{{#str}}external, tool_dataprivacy{{/str}}</span>
|
|
|
50 |
<div class="small">{{#str}}externalexplanation, tool_dataprivacy{{/str}}</div>
|
|
|
51 |
</div>
|
|
|
52 |
|
|
|
53 |
<div class="d-inline-flex align-items-center flex-wrap w-100 my-1">
|
|
|
54 |
<span class="mr-2 my-0 badge badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
|
|
|
55 |
<div class="small">{{#str}}deprecatedexplanation, tool_dataprivacy{{/str}}</div>
|
|
|
56 |
</div>
|
|
|
57 |
|
|
|
58 |
<div class="d-inline-flex align-items-center flex-wrap w-100 my-1">
|
|
|
59 |
<span class="mr-2 my-0 badge badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
|
|
|
60 |
<div class="small">{{#str}}userlistexplanation, tool_dataprivacy{{/str}}</div>
|
|
|
61 |
</div>
|
|
|
62 |
|
|
|
63 |
</div>
|
|
|
64 |
|
|
|
65 |
<div class="clearfix mt-4"><a class="tool_dataprivacy-expand-all float-right mb-2" href="#" data-visibility-state='visible'>{{#str}}visible, tool_dataprivacy{{/str}}</a></div>
|
|
|
66 |
{{#types}}
|
|
|
67 |
<div class="list-group">
|
|
|
68 |
<div class="list-group-item">
|
|
|
69 |
<a class="type-expand" href='#' data-plugin="{{plugin_type_raw}}">
|
|
|
70 |
<h3 class="m-0" id="{{plugin_type_raw}}">
|
|
|
71 |
{{#pix}}t/collapsed, moodle, {{#str}}expandplugintype, tool_dataprivacy{{/str}}{{/pix}}
|
|
|
72 |
<span class="pl-2">{{plugin_type}}</span>
|
|
|
73 |
</h3>
|
|
|
74 |
</a>
|
|
|
75 |
</div>
|
|
|
76 |
<div class="hide" data-plugintarget="{{plugin_type_raw}}" aria-expanded="false" role="contentinfo">
|
|
|
77 |
{{#plugins}}
|
|
|
78 |
{{> tool_dataprivacy/component_status}}
|
|
|
79 |
{{/plugins}}
|
|
|
80 |
</div>
|
|
|
81 |
</div>
|
|
|
82 |
{{/types}}
|
|
|
83 |
</div>
|
|
|
84 |
{{#js}}
|
|
|
85 |
require(['jquery', 'tool_dataprivacy/expand_contract'], function($, ec) {
|
|
|
86 |
|
|
|
87 |
$('.type-expand').click(function(e) {
|
|
|
88 |
e.preventDefault();
|
|
|
89 |
e.stopPropagation();
|
|
|
90 |
var thisnode = $(this);
|
|
|
91 |
var plugin = thisnode.data('plugin');
|
|
|
92 |
var metadata = $('[data-plugintarget=\'' + plugin + '\']');
|
|
|
93 |
ec.expandCollapse(metadata, thisnode);
|
|
|
94 |
});
|
|
|
95 |
|
|
|
96 |
$('.component-expand').click(function(e) {
|
|
|
97 |
e.preventDefault();
|
|
|
98 |
e.stopPropagation();
|
|
|
99 |
var thisnode = $(this);
|
|
|
100 |
var plugin = thisnode.data('component');
|
|
|
101 |
var metadata = $('[data-section=\'' + plugin + '\']');
|
|
|
102 |
ec.expandCollapse(metadata, thisnode);
|
|
|
103 |
});
|
|
|
104 |
|
|
|
105 |
$('.tool_dataprivacy-expand-all').click(function(e) {
|
|
|
106 |
e.preventDefault();
|
|
|
107 |
e.stopPropagation();
|
|
|
108 |
var nextstate = $(this).data('visibilityState');
|
|
|
109 |
ec.expandCollapseAll(nextstate);
|
|
|
110 |
});
|
|
|
111 |
});
|
|
|
112 |
{{/js}}
|