{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template tool_dataprivacy/data_request_email Email template for the data request. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * string dponame The name of the Data Protection Officer * string requestfor The user the request is being made for. * string requestedby The one making the request. * string requesttype The request type. * string requestdate The date the request was made. * string requestorigin The name of the site the request originates from. * string requestoriginurl The homepage of the site the request originates from. * string requestcomments Additional details regarding the request. * bool forself Whether the request has been made on behalf of another user or not. * string datarequestsurl The URL to the data requests page. Example context (json): { "dponame": "Eva Ferrer", "requestfor": "Oscar Olsen", "requestedby": "Angus Zhang", "requesttype": "Export user data", "requestdate": "31 January 2018", "requestorigin": "My Amazing Site", "requestoriginurl": "https://www.bestmoodlesiteever.com", "requestcomments": "Dear admin,
I would like to request a copy of my son's user data. Thanks!", "forself": true, "datarequestsurl": "#" } }} {{#str}}datarequestemailsubject, tool_dataprivacy, {{requesttype}}{{/str}}

{{#str}}emailsalutation, tool_dataprivacy, {{dponame}}{{/str}}

{{#str}}requestemailintro, tool_dataprivacy{{/str}}

{{^forself}} {{/forself}}
{{#str}}requesttype, tool_dataprivacy{{/str}} {{requesttype}}
{{#str}}requestfor, tool_dataprivacy{{/str}} {{requestfor}}
{{#str}}requestby, tool_dataprivacy{{/str}} {{requestedby}}
{{#str}}requestorigin, tool_dataprivacy{{/str}} {{{requestorigin}}}
{{#str}}requestcomments, tool_dataprivacy{{/str}} {{{requestcomments}}}
{{#str}}daterequested, tool_dataprivacy{{/str}} {{requestdate}}

{{#str}}viewrequest, tool_dataprivacy{{/str}}