mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-61899 tool_dataprivacy: Styling of the second registry.
Includes MDL-61489
This commit is contained in:
parent
d6ff9edd4f
commit
eb6b4c2368
admin/tool/dataprivacy/templates
@ -46,59 +46,64 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="row">
|
<div classs="container-fluid">
|
||||||
<div class="col">
|
<hr />
|
||||||
|
<div class="row">
|
||||||
{{#compliant}}
|
{{#compliant}}
|
||||||
<a class="expand" data-component="{{raw_component}}" href='#'>
|
<a class="expand" data-component="{{raw_component}}" href='#'>
|
||||||
<h4 class="d-inline p-r-1 p-l-1" id="{{raw_component}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugin, tool_dataprivacy{{/str}}{{/pix}}{{component}}</h4>
|
<h4 class="d-inline p-l-2 " id="{{raw_component}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugin, tool_dataprivacy{{/str}}{{/pix}}{{component}}</h4>
|
||||||
</a>
|
</a>
|
||||||
<!-- <span class="badge badge-pill badge-success">{{#str}}compliant, tool_dataprivacy{{/str}}</span> -->
|
<!-- <span class="badge badge-pill badge-success">{{#str}}compliant, tool_dataprivacy{{/str}}</span> -->
|
||||||
{{/compliant}}
|
{{/compliant}}
|
||||||
{{^compliant}}
|
{{^compliant}}
|
||||||
<h4 class="d-inline p-r-1 p-l-1" id="{{raw_component}}">{{component}}</h4>
|
<h4 class="d-inline p-l-3 " id="{{raw_component}}">{{component}}</h4>
|
||||||
<span>{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
|
<span>{{#pix}}i/risk_xss, moodle, {{#str}}requiresattention, tool_dataprivacy{{/str}}{{/pix}}</span>
|
||||||
{{/compliant}}
|
{{/compliant}}
|
||||||
{{#external}}
|
{{#external}}
|
||||||
<span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>
|
<span class="badge badge-pill badge-notice">{{#str}}external, tool_dataprivacy{{/str}}</span>
|
||||||
{{/external}}
|
{{/external}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{{#compliant}}
|
{{#compliant}}
|
||||||
<div class="hide" data-section="{{raw_component}}" aria-expanded="false">
|
<div class="hide" data-section="{{raw_component}}" aria-expanded="false">
|
||||||
{{#metadata}}
|
{{#metadata}}
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row-fluid">
|
<div class="p-l-3">
|
||||||
<div class="span2 col-xs-3">
|
<dl class="row">
|
||||||
{{#link}}
|
<dt class="span3 col-xs-3">
|
||||||
<a href="#{{name}}"><h5>{{name}}</h5></a>
|
{{#link}}
|
||||||
{{/link}}
|
<a href="#{{name}}"><h5 style="word-wrap:break-word">{{name}}</h5></a>
|
||||||
{{^link}}
|
{{/link}}
|
||||||
<h5>{{name}}</h5>
|
{{^link}}
|
||||||
{{/link}}
|
<h5 style="word-wrap:break-word">{{name}}</h5>
|
||||||
<div class="p-b-1 small text-muted">{{type}}</div>
|
{{/link}}
|
||||||
</div>
|
<div class="small text-muted" style="word-wrap:break-word">{{type}}</div>
|
||||||
<div class="span10 col-xs-9">{{summary}}</div>
|
</dt>
|
||||||
|
<dd class="span9 col-xs-9">{{summary}}</dd>
|
||||||
|
</dl>
|
||||||
|
<dl>
|
||||||
|
{{#fields}}
|
||||||
|
<div class="row">
|
||||||
|
<dt class="span3 col-xs-3 font-weight-normal" style="word-wrap:break-word">{{field_name}}</dt>
|
||||||
|
<dd class="span9 col-xs-9">{{field_summary}}</dd>
|
||||||
|
</div>
|
||||||
|
{{/fields}}
|
||||||
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-sm">
|
{{/metadata}}
|
||||||
<tbody>
|
{{#nullprovider}}
|
||||||
{{#fields}}
|
<hr />
|
||||||
<tr class="row">
|
<div class="p-l-3">
|
||||||
<td class="col-xs-3">{{field_name}}</td>
|
<div class="row">
|
||||||
<td class="col-xs-9">{{field_summary}}</td>
|
<div class="span12 col-xs-12">
|
||||||
</tr>
|
{{nullprovider}}
|
||||||
{{/fields}}
|
</div>
|
||||||
</tbody>
|
</div>
|
||||||
</table>
|
</div>
|
||||||
{{/metadata}}
|
{{/nullprovider}}
|
||||||
{{#nullprovider}}
|
|
||||||
<hr />
|
|
||||||
<div>{{nullprovider}}</div>
|
|
||||||
{{/nullprovider}}
|
|
||||||
</div>
|
</div>
|
||||||
{{/compliant}}
|
{{/compliant}}
|
||||||
<hr />
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{{#js}}
|
{{#js}}
|
||||||
require(['jquery', 'core/url'], function($, url) {
|
require(['jquery', 'core/url'], function($, url) {
|
||||||
|
@ -47,22 +47,20 @@
|
|||||||
<dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
|
<dd>{{#str}}externalexplanation, tool_dataprivacy{{/str}}</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<hr />
|
<hr />
|
||||||
<div><a class="tool_dataprivacy-expand-all pull-right" href="#" data-visibility-state='visible'>{{#str}}visible, tool_dataprivacy{{/str}}</a></div>
|
<div class="clearfix"><a class="tool_dataprivacy-expand-all pull-right" href="#" data-visibility-state='visible'>{{#str}}visible, tool_dataprivacy{{/str}}</a></div>
|
||||||
{{#types}}
|
{{#types}}
|
||||||
<div class="container-fluid">
|
<div>
|
||||||
<div class="row">
|
<div>
|
||||||
<div class="col">
|
<a class="other-expand" href='#' data-plugin="{{plugin_type_raw}}">
|
||||||
<a class="other-expand" href='#' data-plugin="{{plugin_type_raw}}">
|
<h3 id="{{plugin_type_raw}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugintype, tool_dataprivacy{{/str}}{{/pix}}{{plugin_type}}</h3>
|
||||||
<h3 id="{{plugin_type_raw}}">{{#pix}}t/collapsed, moodle, {{#str}}expandplugintype, tool_dataprivacy{{/str}}{{/pix}}{{plugin_type}}</h3>
|
</a>
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="hide" data-plugintarget="{{plugin_type_raw}}" aria-expanded="false">
|
|
||||||
{{#plugins}}
|
|
||||||
{{> tool_dataprivacy/component_status}}
|
|
||||||
{{/plugins}}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="hide" data-plugintarget="{{plugin_type_raw}}" aria-expanded="false">
|
||||||
|
{{#plugins}}
|
||||||
|
{{> tool_dataprivacy/component_status}}
|
||||||
|
{{/plugins}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{{/types}}
|
{{/types}}
|
||||||
</div>
|
</div>
|
||||||
{{#js}}
|
{{#js}}
|
||||||
@ -79,7 +77,7 @@ require(['jquery', 'core/url', 'core/str'], function($, url, str) {
|
|||||||
var plugin = $(this).data('plugin');
|
var plugin = $(this).data('plugin');
|
||||||
var metadata = $('[data-plugintarget=\'' + plugin + '\']');
|
var metadata = $('[data-plugintarget=\'' + plugin + '\']');
|
||||||
if (metadata.attr('class') === 'hide') {
|
if (metadata.attr('class') === 'hide') {
|
||||||
metadata.attr('class', 'visible');
|
metadata.attr('class', 'visible p-b-2');
|
||||||
$(this).children('img').attr('src', expandedImage.attr('src'));
|
$(this).children('img').attr('src', expandedImage.attr('src'));
|
||||||
metadata.attr('aria-expanded', true);
|
metadata.attr('aria-expanded', true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user