MDL-63333 core: removed unused setting 'messaginghidereadnotifications'
[moodle.git] / admin / tool / dataprivacy / templates / data_request_email.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
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.
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.
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
20     Email template for the data request.
22     Classes required for JS:
23     * none
25     Data attributes required for JS:
26     * none
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 requestcomments Additional details regarding the request.
35     * bool forself Whether the request has been made on behalf of another user or not.
36     * string datarequestsurl The URL to the data requests page.
38     Example context (json):
39     {
40         "dponame": "Eva Ferrer",
41         "requestfor": "Oscar Olsen",
42         "requestedby": "Angus Zhang",
43         "requesttype": "Export user data",
44         "requestdate": "31 January 2018",
45         "requestcomments": "Dear admin,<br/> I would like to request a copy of my son's user data. Thanks!",
46         "forself": true,
47         "datarequestsurl": "#"
48     }
49 }}
50 <!DOCTYPE html>
51 <html>
52 <head>
53     <meta charset="UTF-8">
54     <style>
55         table, th, td {
56             border: 1px solid black;
57             padding: 0.5em;
58         }
59     </style>
60     <title>{{#str}}datarequestemailsubject, tool_dataprivacy, {{requesttype}}{{/str}}</title>
61 </head>
62 <body>
63     <div>
64         <p>{{#str}}emailsalutation, tool_dataprivacy, {{dponame}}{{/str}}</p>
65         <p>{{#str}}requestemailintro, tool_dataprivacy{{/str}}</p>
66         <table>
67             <tr>
68                 <th scope="row">
69                     {{#str}}requesttype, tool_dataprivacy{{/str}}
70                 </th>
71                 <td>
72                     {{requesttype}}
73                 </td>
74             </tr>
75             <tr>
76                 <th scope="row">
77                     {{#str}}requestfor, tool_dataprivacy{{/str}}
78                 </th>
79                 <td>
80                     {{requestfor}}
81                 </td>
82             </tr>
83             {{^forself}}
84                 <tr>
85                     <th scope="row">
86                         {{#str}}requestby, tool_dataprivacy{{/str}}
87                     </th>
88                     <td>
89                         {{requestedby}}
90                     </td>
91                 </tr>
92             {{/forself}}
93             <tr>
94                 <th scope="row">
95                     {{#str}}requestcomments, tool_dataprivacy{{/str}}
96                 </th>
97                 <td>
98                     {{{requestcomments}}}
99                 </td>
100             </tr>
101             <tr>
102                 <th scope="row">
103                     {{#str}}daterequested, tool_dataprivacy{{/str}}
104                 </th>
105                 <td>
106                     {{requestdate}}
107                 </td>
108             </tr>
109         </table>
110         <hr>
111         <a href="{{datarequestsurl}}">{{#str}}viewrequest, tool_dataprivacy{{/str}}</a>
112     </div>
113 </body>
114 </html>