| Línea 19... |
Línea 19... |
| 19 |
|
19 |
|
| Línea 20... |
Línea 20... |
| 20 |
Template for system report filters area
|
20 |
Template for system report filters area
|
| 21 |
|
21 |
|
| 22 |
Example context (json):
|
- |
|
| 23 |
{
|
22 |
Example context (json):
|
| 24 |
"id": 3,
|
23 |
{
|
| 25 |
"contextid": 1,
|
24 |
"contextid": 1,
|
| 26 |
"filtersapplied": 3,
|
25 |
"filtersapplied": 3,
|
| 27 |
"filtersform": "form"
|
26 |
"filtersform": "form"
|
| Línea 28... |
Línea 27... |
| 28 |
}
|
27 |
}
|
| 29 |
}}
|
28 |
}}
|
| 30 |
|
29 |
|
| 31 |
{{! Filters button }}
|
30 |
{{! Filters button }}
|
| 32 |
<button class="btn btn-outline-secondary ml-2" type="button" id="dropdownFiltersButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{#str}} filters, moodle {{/str}}">
|
31 |
<button class="btn btn-outline-secondary ms-2" type="button" id="dropdownFiltersButton" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-haspopup="true" aria-expanded="false" title="{{#str}} filters, moodle {{/str}}">
|
| 33 |
{{#pix}} i/filter, core {{/pix}}
|
32 |
{{#pix}} i/filter, core {{/pix}}
|
| 34 |
<span data-region="filter-button-label">
|
33 |
<span data-region="filter-button-label">
|
| 35 |
{{#filtersapplied}} {{#str}} filtersappliedx, core_reportbuilder, {{filtersapplied}} {{/str}} {{/filtersapplied}}
|
34 |
{{#filtersapplied}} {{#str}} filtersappliedx, core_reportbuilder, {{filtersapplied}} {{/str}} {{/filtersapplied}}
|
| 36 |
{{^filtersapplied}} {{#str}} filters, moodle {{/str}} {{/filtersapplied}}
|
35 |
{{^filtersapplied}} {{#str}} filters, moodle {{/str}} {{/filtersapplied}}
|
| 37 |
</span>
|
36 |
</span>
|
| 38 |
</button>
|
37 |
</button>
|
| 39 |
{{! Filters content }}
|
38 |
{{! Filters content }}
|
| 40 |
<div class="filters-dropdown dropdown-menu dropdown-menu-right moodle-has-zindex" aria-labelledby="dropdownFiltersButton">
|
39 |
<div class="filters-dropdown dropdown-menu dropdown-menu-end moodle-has-zindex" aria-labelledby="dropdownFiltersButton">
|
| 41 |
<div id="filters" class="reportbuilder-filters-sidebar scroll-shadow" data-region="report-filters">
|
40 |
<div id="filters" class="reportbuilder-filters-sidebar scroll-shadow" data-region="report-filters">
|
| 42 |
<div class="px-3 pt-3">
|
41 |
<div class="px-3 pt-3">
|
| Línea 49... |
Línea 48... |
| 49 |
</div>
|
48 |
</div>
|
| 50 |
</div>
|
49 |
</div>
|
| Línea 51... |
Línea 50... |
| 51 |
|
50 |
|
| 52 |
{{#js}}
|
51 |
{{#js}}
|
| 53 |
require(['core_reportbuilder/filters'], function(filters) {
|
52 |
require(['core_reportbuilder/filters'], function(filters) {
|
| 54 |
filters.init({{id}}, {{contextid}});
|
53 |
filters.init('reportbuilder-report-{{uniqid}}', {{contextid}});
|
| 55 |
});
|
54 |
});
|