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
<div class="wrapper-fw">
72
    <h3>{{#str}}dataretentionsummary, tool_dataprivacy{{/str}}</h3>
73
    <p>{{#str}}dataretentionexplanation, tool_dataprivacy{{/str}}</p>
74
 
75
    <hr class="hr-small" />
76
 
77
    {{#contexts}}
78
        <div class="card mb-3">
79
            <div class="card-header"><h5 class="mb-0">{{contextname}}</h5></div>
80
            <div class="card-body">
81
 
82
                {{#category.name}}
83
                <h4>{{#str}}category, tool_dataprivacy{{/str}}</h4>
84
                <dl>
85
                    <dt>{{category.name}}</dt>
86
                    <dd>{{{category.description}}}</dd>
87
                </dl>
88
                <hr />
89
                {{/category.name}}
90
                <h5>{{#str}}purpose, tool_dataprivacy{{/str}}</h5>
91
                <dl class="mb-0">
92
                    <dt>{{purpose.name}}</dt>
93
                    <dd>{{{purpose.description}}}</dd>
94
                    <dt>{{#str}}retentionperiod, tool_dataprivacy{{/str}}</dt>
95
                    <dd>{{purpose.formattedretentionperiod}}</dd>
96
                </dl>
97
                {{#purpose.lawfulbases}}
98
                <table class="table table-bordered">
99
                    <thead><tr><th colspan="2">{{#str}}lawfulbases, tool_dataprivacy{{/str}}</th></tr></thead>
100
                    <tbody>
101
                    {{#purpose.formattedlawfulbases}}
102
                        <tr>
103
                            <td>{{name}}</td>
104
                            <td>{{description}}</td>
105
                        </tr>
106
                    {{/purpose.formattedlawfulbases}}
107
                    </tbody>
108
                </table>
109
                {{/purpose.lawfulbases}}
110
                {{#purpose.sensitivedatareasons}}
111
                <table class="table table-bordered">
112
                    <thead><tr><th colspan="2">{{#str}}sensitivedatareasons, tool_dataprivacy{{/str}}</th></tr></thead>
113
                    <tbody>
114
                    {{#purpose.formattedsensitivedatareasons}}
115
                        <tr>
116
                            <td>{{name}}</td>
117
                            <td>{{description}}</td>
118
                        </tr>
119
                    {{/purpose.formattedsensitivedatareasons}}
120
                    </tbody>
121
                </table>
122
                {{/purpose.sensitivedatareasons}}
123
            </div>
124
        </div>
125
    {{/contexts}}
126
</div>