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 comments.
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/>.
18 @template tool_dataprivacy/data_deletion
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * filter - The context data for single_select element that has the options for the table filter.
30 * expiredcontexts - The HTML for the table of expired contexts.
32 Example context (json):
38 "classes": "singleselect",
42 "formid": "single_select_f5ac5e42bb035319",
43 "id": "single_select5ac5e42bb035320",
46 {"value": 50, "name": "Course", "selected": true, "optgroup": false},
47 {"value": 70, "name": "Activities and resources", "selected":false, "optgroup": false},
48 {"value": 80, "name": "Blocks", "selected": false, "optgroup": false}
50 "labelattributes": [],
53 "expiredcontexts": "<table class='table'><tbody><tr><td>This is the table that will contain the list of expired contexts</td></tr></tbody></table>"
56 <div class="container-fluid" data-region="data-deletion">
57 <div class="row" data-region="top-nav">
58 <div class="alert alert-info">
59 {{#str}}datadeletionpagehelp, tool_dataprivacy{{/str}}
61 <div class="pull-left">
63 {{> core/single_select}}
67 <div class="pull-right">
68 <button data-action="markfordeletion" class="btn btn-secondary">{{#str}}deleteselected, moodle{{/str}}</button>
72 <div class="row m-t-1 m-b-1" data-region="expired-contexts-table">
75 <div class="row" data-region="bottom-nav">
77 <div class="pull-right">
78 <button data-action="markfordeletion" class="btn btn-secondary">{{#str}}deleteselected, moodle{{/str}}</button>
85 require(['tool_dataprivacy/data_deletion'], function(DataDeletion) {