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 tool_dataprivacy/summary
19
 
20
    Summary
21
 
22
    Classes required for JS:
23
 
24
    Data attributes required for JS:
25
 
26
    Context variables required for this template:
27
 
28
    Example context (json):
29
    {
30
 
31
        "contexts": [
32
            {
33
                "contextname": "Site",
34
                "category":
35
                {
36
                    "name": "Test category",
37
                    "description": "<p>Description for category</p>"
38
                },
39
                "purpose":
40
                {
41
                    "name": "Test purpose",
42
                    "description": "<p>Description for purpose</p>",
43
                    "lawfulbases": "gdpr_art_6_1_c",
44
                    "sensitivedatareasons": "gdpr_art_9_2_f",
45
                    "formattedlawfulbases": [
46
                        {
47
                            "name": "Lawful base 1(a)",
48
                            "description": "We need your information"
49
                        },
50
                        {
51
                            "name": "Lawful base 1(b)",
52
                            "description": "We really do need your information"
53
                        }
54
                    ],
55
                    "formattedsensitivedatareasons": [
56
                        {
57
                            "name": "Sensitive data reason number 1",
58
                            "description": "Number 1"
59
                        },
60
                        {
61
                            "name": "Sensitive data reason number 1",
62
                            "description": "Number 2"
63
                        }
64
                    ],
65
                    "formattedretentionperiod": "10 Years"
66
                }
67
            }
68
        ]
69
    }
70
}}
71
<h2>{{#str}}dataretentionsummary, tool_dataprivacy{{/str}}</h2>
72
<p>{{#str}}dataretentionexplanation, tool_dataprivacy{{/str}}</p>
73
<div>
74
    {{#contexts}}
75
        <div class="card mb-3">
76
            <div class="card-header"><h3>{{contextname}}</h3></div>
77
            <div class="card-body pl-5 pr-5">
78
 
79
                {{#category.name}}
80
                <h4>{{#str}}category, tool_dataprivacy{{/str}}</h4>
81
                <dl>
82
                    <dt>{{category.name}}</dt>
83
                    <dd>{{{category.description}}}</dd>
84
                </dl>
85
                <hr />
86
                {{/category.name}}
87
                <h4>{{#str}}purpose, tool_dataprivacy{{/str}}</h4>
88
                <dl>
89
                    <dt>{{purpose.name}}</dt>
90
                    <dd>{{{purpose.description}}}</dd>
91
                    <dt>{{#str}}retentionperiod, tool_dataprivacy{{/str}}</dt>
92
                    <dd>{{purpose.formattedretentionperiod}}</dd>
93
                </dl>
94
                {{#purpose.lawfulbases}}
95
                <table class="table table-bordered">
96
                    <thead><tr><th colspan="2">{{#str}}lawfulbases, tool_dataprivacy{{/str}}</th></tr></thead>
97
                    <tbody>
98
                    {{#purpose.formattedlawfulbases}}
99
                        <tr>
100
                            <td>{{name}}</td>
101
                            <td>{{description}}</td>
102
                        </tr>
103
                    {{/purpose.formattedlawfulbases}}
104
                    </tbody>
105
                </table>
106
                {{/purpose.lawfulbases}}
107
                {{#purpose.sensitivedatareasons}}
108
                <table class="table table-bordered">
109
                    <thead><tr><th colspan="2">{{#str}}sensitivedatareasons, tool_dataprivacy{{/str}}</th></tr></thead>
110
                    <tbody>
111
                    {{#purpose.formattedsensitivedatareasons}}
112
                        <tr>
113
                            <td>{{name}}</td>
114
                            <td>{{description}}</td>
115
                        </tr>
116
                    {{/purpose.formattedsensitivedatareasons}}
117
                    </tbody>
118
                </table>
119
                {{/purpose.sensitivedatareasons}}
120
            </div>
121
        </div>
122
    {{/contexts}}
123
</div>