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="container-fluid">
50
    <hr />
51
    <div class="row">
52
        {{#compliant}}
53
            <a class="component-expand pl-5" data-component="{{raw_component}}" href='#'>
54
            <h4 class=" d-inline pl-5 " id="{{raw_component}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugin, tool_dataprivacy{{/str}}{{/pix}}{{component}}</h4>
55
            </a>
56
        {{/compliant}}
57
        {{^compliant}}
58
            <h4 class="d-inline pl-6 " id="{{raw_component}}">{{component}}</h4>
59
            <span>{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
60
        {{/compliant}}
61
        {{#external}}
62
            <span class="badge rounded-pill bg-info text-white">{{#str}}external, tool_dataprivacy{{/str}}</span>
63
        {{/external}}
64
        {{#deprecated}}
65
            <span class="badge rounded-pill bg-warning text-dark">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
66
        {{/deprecated}}
67
        {{#userlistnoncompliance}}
68
            <span class="badge rounded-pill bg-warning text-dark">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
69
        {{/userlistnoncompliance}}
70
    </div>
71
 
72
    {{#compliant}}
73
        <div class="hide" data-section="{{raw_component}}" aria-expanded="false" role="contentinfo">
74
            {{#metadata}}
75
                <hr />
76
                <div class="pl-6">
77
                    <dl class="row">
78
                        <dt class="col-3">
79
                            {{#link}}
80
                                <a href="#{{name}}"><strong style="word-wrap:break-word">{{name}}</strong></a>
81
                            {{/link}}
82
                            {{^link}}
83
                                <strong style="word-wrap:break-word">{{name}}</strong>
84
                            {{/link}}
85
                            <div class="small text-muted" style="word-wrap:break-word">{{type}}</div>
86
                        </dt>
87
                        <dd class="col-9">{{summary}}</dd>
88
                    </dl>
89
                    <dl>
90
                        {{#fields}}
91
                        <div class="row">
92
                            <dt class="col-3 font-weight-normal" style="word-wrap:break-word">{{field_name}}</dt>
93
                            <dd class="col-9">{{field_summary}}</dd>
94
                        </div>
95
                        {{/fields}}
96
                    </dl>
97
                </div>
98
            {{/metadata}}
99
            {{#nullprovider}}
100
                <hr />
101
                <div class="pl-6">
102
                    <div class="row">
103
                        <div class="col-12">
104
                            {{nullprovider}}
105
                        </div>
106
                    </div>
107
                </div>
108
            {{/nullprovider}}
109
        </div>
110
    {{/compliant}}
111
</div>