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_dataprivacy/data_request_email
|
|
|
19 |
|
|
|
20 |
Email template for the data request.
|
|
|
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 |
* string dponame The name of the Data Protection Officer
|
|
|
30 |
* string requestfor The user the request is being made for.
|
|
|
31 |
* string requestedby The one making the request.
|
|
|
32 |
* string requesttype The request type.
|
|
|
33 |
* string requestdate The date the request was made.
|
|
|
34 |
* string requestorigin The name of the site the request originates from.
|
|
|
35 |
* string requestoriginurl The homepage of the site the request originates from.
|
|
|
36 |
* string requestcomments Additional details regarding the request.
|
|
|
37 |
* bool forself Whether the request has been made on behalf of another user or not.
|
|
|
38 |
* string datarequestsurl The URL to the data requests page.
|
|
|
39 |
|
|
|
40 |
Example context (json):
|
|
|
41 |
{
|
|
|
42 |
"dponame": "Eva Ferrer",
|
|
|
43 |
"requestfor": "Oscar Olsen",
|
|
|
44 |
"requestedby": "Angus Zhang",
|
|
|
45 |
"requesttype": "Export user data",
|
|
|
46 |
"requestdate": "31 January 2018",
|
|
|
47 |
"requestorigin": "My Amazing Site",
|
|
|
48 |
"requestoriginurl": "https://www.bestmoodlesiteever.com",
|
|
|
49 |
"requestcomments": "Dear admin,<br/> I would like to request a copy of my son's user data. Thanks!",
|
|
|
50 |
"forself": true,
|
|
|
51 |
"datarequestsurl": "#"
|
|
|
52 |
}
|
|
|
53 |
}}
|
|
|
54 |
<!DOCTYPE html>
|
|
|
55 |
<html>
|
|
|
56 |
<head>
|
|
|
57 |
<meta charset="UTF-8">
|
|
|
58 |
<style>
|
|
|
59 |
table.dataprivacy_email_table, .dataprivacy_email_table th, .dataprivacy_email_table td {
|
|
|
60 |
border: 1px solid black;
|
|
|
61 |
padding: 0.5em;
|
|
|
62 |
}
|
|
|
63 |
</style>
|
|
|
64 |
<title>{{#str}}datarequestemailsubject, tool_dataprivacy, {{requesttype}}{{/str}}</title>
|
|
|
65 |
</head>
|
|
|
66 |
<body>
|
|
|
67 |
<div>
|
|
|
68 |
<p>{{#str}}emailsalutation, tool_dataprivacy, {{dponame}}{{/str}}</p>
|
|
|
69 |
<p>{{#str}}requestemailintro, tool_dataprivacy{{/str}}</p>
|
|
|
70 |
<table class="dataprivacy_email_table">
|
|
|
71 |
<tr>
|
|
|
72 |
<th scope="row">
|
|
|
73 |
{{#str}}requesttype, tool_dataprivacy{{/str}}
|
|
|
74 |
</th>
|
|
|
75 |
<td>
|
|
|
76 |
{{requesttype}}
|
|
|
77 |
</td>
|
|
|
78 |
</tr>
|
|
|
79 |
<tr>
|
|
|
80 |
<th scope="row">
|
|
|
81 |
{{#str}}requestfor, tool_dataprivacy{{/str}}
|
|
|
82 |
</th>
|
|
|
83 |
<td>
|
|
|
84 |
{{requestfor}}
|
|
|
85 |
</td>
|
|
|
86 |
</tr>
|
|
|
87 |
{{^forself}}
|
|
|
88 |
<tr>
|
|
|
89 |
<th scope="row">
|
|
|
90 |
{{#str}}requestby, tool_dataprivacy{{/str}}
|
|
|
91 |
</th>
|
|
|
92 |
<td>
|
|
|
93 |
{{requestedby}}
|
|
|
94 |
</td>
|
|
|
95 |
</tr>
|
|
|
96 |
{{/forself}}
|
|
|
97 |
<tr>
|
|
|
98 |
<th scope="row">
|
|
|
99 |
{{#str}}requestorigin, tool_dataprivacy{{/str}}
|
|
|
100 |
</th>
|
|
|
101 |
<td>
|
|
|
102 |
<a href="{{requestoriginurl}}">{{{requestorigin}}}</a>
|
|
|
103 |
</td>
|
|
|
104 |
</tr>
|
|
|
105 |
<tr>
|
|
|
106 |
<th scope="row">
|
|
|
107 |
{{#str}}requestcomments, tool_dataprivacy{{/str}}
|
|
|
108 |
</th>
|
|
|
109 |
<td>
|
|
|
110 |
{{{requestcomments}}}
|
|
|
111 |
</td>
|
|
|
112 |
</tr>
|
|
|
113 |
<tr>
|
|
|
114 |
<th scope="row">
|
|
|
115 |
{{#str}}daterequested, tool_dataprivacy{{/str}}
|
|
|
116 |
</th>
|
|
|
117 |
<td>
|
|
|
118 |
{{requestdate}}
|
|
|
119 |
</td>
|
|
|
120 |
</tr>
|
|
|
121 |
</table>
|
|
|
122 |
<hr>
|
|
|
123 |
<a href="{{datarequestsurl}}">{{#str}}viewrequest, tool_dataprivacy{{/str}}</a>
|
|
|
124 |
</div>
|
|
|
125 |
</body>
|
|
|
126 |
</html>
|