MDL-64506 templates: Remove BS2 spans from elements.
[moodle.git] / admin / tool / dataprivacy / templates / component_status.mustache
1 {{!
2     This file is part of Moodle - http://moodle.org/
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.
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.
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
20     Data registry main page.
22     Classes required for JS:
23     * none
25     Data attributes required for JS:
26     * none
28     Context variables required for this template:
29     * none
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 }}
49 <div class="container-fluid">
50     <hr />
51     <div class="row">
52         {{#compliant}}
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>
55             </a>
56         {{/compliant}}
57         {{^compliant}}
58             <h4 class="d-inline p-l-3 " 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 badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>
63         {{/external}}
64         {{#deprecated}}
65             <span class="badge badge-pill badge-warning">{{#str}}deprecated, tool_dataprivacy{{/str}}</span>
66         {{/deprecated}}
67         {{#userlistnoncompliance}}
68             <span class="badge badge-pill badge-warning">{{#str}}userlistnoncompliant, tool_dataprivacy{{/str}}</span>
69         {{/userlistnoncompliance}}
70     </div>
72     {{#compliant}}
73         <div class="hide" data-section="{{raw_component}}" aria-expanded="false" role="contentinfo">
74             {{#metadata}}
75                 <hr />
76                 <div class="p-l-3">
77                     <dl class="row">
78                         <dt class="col-xs-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-xs-9">{{summary}}</dd>
88                     </dl>
89                     <dl>
90                         {{#fields}}
91                         <div class="row">
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>
94                         </div>
95                         {{/fields}}
96                     </dl>
97                 </div>
98             {{/metadata}}
99             {{#nullprovider}}
100                 <hr />
101                 <div class="p-l-3">
102                     <div class="row">
103                         <div class="col-xs-12">
104                             {{nullprovider}}
105                         </div>
106                     </div>
107                 </div>
108             {{/nullprovider}}
109         </div>
110     {{/compliant}}
111 </div>