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 comments.
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/component_status
19
 
20
    Data registry main page.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Context variables required for this template:
29
    * none
30
 
31
    Example context (json):
32
    {
33
        "compliant" : "True",
34
        "raw_component" : "core_comment",
35
        "component" : "Core comment",
36
        "external" : "True",
37
        "metadata" : {
38
            "name" : "comments",
39
            "type" : "database_table",
40
            "summary" : "Stores comments of users",
41
            "fields" : {
42
                "field_name" : "content",
43
                "field_summary" : "Stores the text of the content."
44
            }
45
        }
46
    }
47
}}
48
 
49
<div class="list-group-item py-1">
50
    <div class="row">
51
        {{#compliant}}
52
            <a class="component-expand" data-component="{{raw_component}}" href='#'>
53
            <h5 class="d-flex align-items-center py-3 pl-5 my-0" id="{{raw_component}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugin, tool_dataprivacy{{/str}}{{/pix}}<span class="pl-1">{{component}}</span></h5>
54
            </a>
55
        {{/compliant}}
56
        {{^compliant}}
57
            <h5 class="d-inline pl-6 " id="{{raw_component}}">{{component}}</h5>
58
            <span>{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
59
        {{/compliant}}
60
        {{#external}}
61
            <span class="mx-2 badge badge-sm badge-info">{{#str}}external, tool_dataprivacy{{/str}}</span>
62
        {{/external}}
63
        {{#deprecated}}
64
            <span class="mx-2 badge badge-sm badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
65
        {{/deprecated}}
66
        {{#userlistnoncompliance}}
67
            <span class="mx-2 badge badge-sm badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
68
        {{/userlistnoncompliance}}
69
    </div>
70
 
71
    {{#compliant}}
72
        <div class="hide" data-section="{{raw_component}}" aria-expanded="false" role="contentinfo">
73
            {{#metadata}}
74
                <div class="pl-6 py-3">
75
                    <dl class="p-0 m-0">
76
                        <dt>
77
                            {{#link}}
78
                                <a href="#{{name}}"><strong style="word-wrap:break-word">{{name}}</strong></a>
79
                            {{/link}}
80
                            {{^link}}
81
                                <strong style="word-wrap:break-word">{{name}}</strong>
82
                            {{/link}}
83
                            <div class="small text-muted" style="word-wrap:break-word">{{type}}</div>
84
                        </dt>
85
                        <dd class="small mt-2">{{summary}}</dd>
86
                    </dl>
87
 
88
                    {{#fields}}
89
                    <dl class="py-3 m-0">
90
                        <dt style="word-wrap:break-word">{{field_name}}</dt>
91
                        <dd class="small mt-2">{{field_summary}}</dd>
92
                    </dl>
93
                    {{/fields}}
94
 
95
                </div>
96
            {{/metadata}}
97
            {{#nullprovider}}
98
                <div class="pl-6">
99
                    <div class="row">
100
                        <div class="pb-2 pl-2">
101
                            {{nullprovider}}
102
                        </div>
103
                    </div>
104
                </div>
105
            {{/nullprovider}}
106
        </div>
107
    {{/compliant}}
108
</div>