{{! 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/purposes Manage purposes. Classes required for JS: Data attributes required for JS: Context variables required for this template: * purposes - array of objects * actions - array of actions (already in HTML). Example context (json): { "purposesexist": 1, "purposes": [ { "name" : "Purpose 1", "description": "Purpose 1 description", "retentionperiod": 86400, "protected": 1, "formattedretentionperiod": "1 day", "actions": [ ] }, { "name" : "Purpose 2", "description": "Purpose 2 description", "retentionperiod": 7200, "protected": 0, "formattedretentionperiod": "2 hours", "actions": [ ] } ] } }} {{#navigation}}
{{> core/action_link}}
{{/navigation}}

{{#str}}purposeoverview, tool_dataprivacy{{/str}}

{{#purposes}} {{/purposes}}
{{#str}}purposeslist, tool_dataprivacy{{/str}}
{{#str}}name{{/str}} {{#str}}lawfulbases, tool_dataprivacy{{/str}} {{#str}}sensitivedatareasons, tool_dataprivacy{{/str}} {{#str}}retentionperiod, tool_dataprivacy{{/str}} {{#str}}protected, tool_dataprivacy{{/str}} {{#str}}roleoverrides, tool_dataprivacy{{/str}} {{#str}}actions{{/str}}
{{{name}}}
{{{description}}}
    {{#formattedlawfulbases}}
  • {{name}}{{# pix }} i/info, core, {{description}} {{/ pix }}
  • {{/formattedlawfulbases}}
    {{#formattedsensitivedatareasons}}
  • {{name}}{{# pix }} i/info, core, {{description}} {{/ pix }}
  • {{/formattedsensitivedatareasons}}
{{formattedretentionperiod}} {{#protected}} {{#pix}}i/checked, core, {{#str}}yes{{/str}}{{/pix}} {{/protected}} {{^protected}} {{#str}}no{{/str}} {{/protected}} {{#roleoverrides}} {{#str}}yes{{/str}} {{/roleoverrides}} {{^roleoverrides}} {{#str}}no{{/str}} {{/roleoverrides}} {{#actions}} {{> core/action_menu}} {{/actions}}
{{^purposes}}

{{#str}}nopurposes, tool_dataprivacy{{/str}}

{{/purposes}}