Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
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.
8
 
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.
13
 
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 core_privacy/htmlpage
19
 
20
    Renders the user export html page.
21
    This template is not for use within moodle.
22
 
23
    Classes required for JS:
24
    * none
25
 
26
    Data attributes required for JS:
27
    * none
28
 
29
    Context variables required for this template:
30
    * righttoleft
31
    * navigation
32
    * systemname
33
    * timegenerated
34
    * username
35
 
36
    Example context (json):
37
    {
38
        "righttoleft": 0,
39
        "navigation": "Navigation html",
40
        "systemname": "Test System",
41
        "siteurl": "#",
42
        "timegenerated": 1536906530,
43
        "username": "John Jones"
44
    }
45
}}
46
 
47
<!DOCTYPE html>
48
<html {{#righttoleft}}dir="rtl"{{/righttoleft}}>
49
<head>
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" />
54
</head>
55
<body>
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" />
60
            </a>
61
            <span class="navbar-brand">{{#str}}broughtbymoodle, core_privacy{{/str}}</span>
62
        </div>
63
    </nav>
64
    <div id="page" class="container-fluid mt-2">
65
 
66
        {{{navigation}}}
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>
69
        </div>
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>
74
        <script>
75
            requirejs.config({
76
                "baseUrl": "./",
77
                "paths": {
78
                    "app": "./",
79
                    "jquery": "./js/jquery-3.7.1.min",
80
                    "core/tree": "./js/tree.min"
81
                }
82
            });
83
            var tree;
84
 
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');
93
                    }
94
                });
95
            });
96
        </script>
97
        <footer class="footer">
98
            <div class="container">
99
                <hr />
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>
103
            </div>
104
        </footer>
105
    </div>
106
</body>
107
</html>