Proyectos de Subversion Moodle

Rev

Rev 1 | | Comparar con el anterior | 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 details.
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 core_reportbuilder/local/filters/area
19
 
20
    Template for system report filters area
21
 
22
    Example context (json):
23
    {
24
        "contextid": 1,
25
        "filtersapplied": 3,
26
        "filtersform": "form"
27
    }
28
}}
29
 
30
{{! Filters button }}
1441 ariadna 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}}">
1 efrain 32
    {{#pix}} i/filter, core {{/pix}}
33
    <span data-region="filter-button-label">
34
        {{#filtersapplied}} {{#str}} filtersappliedx, core_reportbuilder, {{filtersapplied}} {{/str}} {{/filtersapplied}}
35
        {{^filtersapplied}} {{#str}} filters, moodle {{/str}} {{/filtersapplied}}
36
    </span>
37
</button>
38
{{! Filters content }}
1441 ariadna 39
<div class="filters-dropdown dropdown-menu dropdown-menu-end moodle-has-zindex" aria-labelledby="dropdownFiltersButton">
1 efrain 40
    <div id="filters" class="reportbuilder-filters-sidebar scroll-shadow" data-region="report-filters">
41
        <div class="px-3 pt-3">
42
            {{#filtersform}}
43
                <div class="reportbuilder-filters-wrapper" data-region="filters-form">
44
                    {{{filtersform}}}
45
                </div>
46
            {{/filtersform}}
47
        </div>
48
    </div>
49
</div>
50
 
51
{{#js}}
52
    require(['core_reportbuilder/filters'], function(filters) {
1441 ariadna 53
        filters.init('reportbuilder-report-{{uniqid}}', {{contextid}});
1 efrain 54
    });
55
{{/js}}