MDL-64506 templates: Remove BS2 spans from elements.
[moodle.git] / admin / tool / dataprivacy / templates / component_status.mustache
CommitLineData
d6ff9edd
AG
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
dd26f1be 49<div class="container-fluid">
eb6b4c23
BR
50 <hr />
51 <div class="row">
d6ff9edd 52 {{#compliant}}
c2aad218
AG
53 <a class="component-expand p-l-2" data-component="{{raw_component}}" href='#'>
54 <h4 class=" d-inline p-l-2 " id="{{raw_component}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugin, tool_dataprivacy{{/str}}{{/pix}}{{component}}</h4>
d6ff9edd 55 </a>
d6ff9edd
AG
56 {{/compliant}}
57 {{^compliant}}
eb6b4c23 58 <h4 class="d-inline p-l-3 " id="{{raw_component}}">{{component}}</h4>
d6ff9edd
AG
59 <span>{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
60 {{/compliant}}
61 {{#external}}
62 <span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>
63 {{/external}}
4905daf4
AG
64 {{#deprecated}}
65 <span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
66 {{/deprecated}}
7a35413d
AG
67 {{#userlistnoncompliance}}
68 <span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
69 {{/userlistnoncompliance}}
d6ff9edd 70 </div>
d6ff9edd
AG
71
72 {{#compliant}}
dd26f1be 73 <div class="hide" data-section="{{raw_component}}" aria-expanded="false" role="contentinfo">
eb6b4c23
BR
74 {{#metadata}}
75 <hr />
76 <div class="p-l-3">
77 <dl class="row">
6ecc4459 78 <dt class="col-xs-3">
eb6b4c23 79 {{#link}}
dd26f1be 80 <a href="#{{name}}"><strong style="word-wrap:break-word">{{name}}</strong></a>
eb6b4c23
BR
81 {{/link}}
82 {{^link}}
dd26f1be 83 <strong style="word-wrap:break-word">{{name}}</strong>
eb6b4c23
BR
84 {{/link}}
85 <div class="small text-muted" style="word-wrap:break-word">{{type}}</div>
86 </dt>
6ecc4459 87 <dd class="col-xs-9">{{summary}}</dd>
eb6b4c23
BR
88 </dl>
89 <dl>
90 {{#fields}}
91 <div class="row">
6ecc4459
MM
92 <dt class="col-xs-3 font-weight-normal" style="word-wrap:break-word">{{field_name}}</dt>
93 <dd class="col-xs-9">{{field_summary}}</dd>
eb6b4c23
BR
94 </div>
95 {{/fields}}
96 </dl>
97 </div>
98 {{/metadata}}
99 {{#nullprovider}}
d6ff9edd 100 <hr />
eb6b4c23
BR
101 <div class="p-l-3">
102 <div class="row">
6ecc4459 103 <div class="col-xs-12">
eb6b4c23
BR
104 {{nullprovider}}
105 </div>
d6ff9edd 106 </div>
d6ff9edd 107 </div>
eb6b4c23 108 {{/nullprovider}}
d6ff9edd
AG
109 </div>
110 {{/compliant}}
c2aad218 111</div>