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/>.
18 @template core_privacy/htmlpage
20 Renders the user export html page.
21 This template is not for use within moodle.
23 Classes required for JS:
26 Data attributes required for JS:
29 Context variables required for this template:
36 Example context (json):
39 "navigation": "Navigation html",
40 "systemname": "Test System",
42 "timegenerated": 1536906530,
43 "username": "John Jones"
48 <html {{#righttoleft}}dir="rtl"{{/righttoleft}}>
50 <meta charset="UTF-8">
51 <title>Data export</title>
52 <link rel="stylesheet" type="text/css" href="moodle.css" />
53 <link rel="stylesheet" type="text/css" href="general.css" />
56 <nav class="navbar navbar-light bg-light border-bottom">
57 <div class="container-fluid p-0">
58 <a class="navbar-brand" href="https://moodle.org" title="Moodle">
59 <img class="moodle-logo" src="pix/moodlelogo.svg" alt="Moodle logo" />
61 <span class="navbar-brand">{{#str}}broughtbymoodle, core_privacy{{/str}}</span>
64 <div id="page" class="container-fluid mt-2">
67 <div data-main-content class="p-5 mb-4 bg-light border rounded">
68 <h2 class="display-8">{{#str}}viewdata, core_privacy{{/str}}</h2>
70 <script src="js/jquery-3.7.1.min.js"></script>
71 <script src="js/data_index.js"></script>
72 <script src="js/general.js"></script>
73 <script src="js/require.min.js"></script>
79 "jquery": "./js/jquery-3.7.1.min",
80 "core/tree": "./js/tree.min"
85 require(['core/tree'], function(t) {
86 var tree = new t('#my-tree');
87 tree.registerEnterCallback(function(item) {
88 var basenode = $(item[0].childNodes[0]);
89 if (basenode.attr('data-var') != undefined) {
90 handleClick(basenode);
91 } else if (basenode.attr('href') != undefined) {
92 window.location.href = basenode.attr('href');
97 <footer class="footer">
98 <div class="container">
100 <div class="text-center text-muted">{{#str}}exportfrom, core_privacy, <a href="{{{siteurl}}}" title="{{systemname}}">{{systemname}}</a>{{/str}}</div>
101 <div class="text-center text-muted">{{#str}}exporttime, core_privacy, {{#userdate}}{{timegenerated}},{{#str}}strftimedatetime, langconfig{{/str}}{{/userdate}}{{/str}}</div>
102 <div class="text-center text-muted">{{#str}}exportuser, core_privacy, {{username}}{{/str}}</div>