Proyectos de Subversion Moodle

Rev

| 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
        "id": 3,
25
        "contextid": 1,
26
        "filtersapplied": 3,
27
        "filtersform": "form"
28
    }
29
}}
30
 
31
{{! 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}}">
33
    {{#pix}} i/filter, core {{/pix}}
34
    <span data-region="filter-button-label">
35
        {{#filtersapplied}} {{#str}} filtersappliedx, core_reportbuilder, {{filtersapplied}} {{/str}} {{/filtersapplied}}
36
        {{^filtersapplied}} {{#str}} filters, moodle {{/str}} {{/filtersapplied}}
37
    </span>
38
</button>
39
{{! Filters content }}
40
<div class="filters-dropdown dropdown-menu dropdown-menu-right moodle-has-zindex" aria-labelledby="dropdownFiltersButton">
41
    <div id="filters" class="reportbuilder-filters-sidebar scroll-shadow" data-region="report-filters">
42
        <div class="px-3 pt-3">
43
            {{#filtersform}}
44
                <div class="reportbuilder-filters-wrapper" data-region="filters-form">
45
                    {{{filtersform}}}
46
                </div>
47
            {{/filtersform}}
48
        </div>
49
    </div>
50
</div>
51
 
52
{{#js}}
53
    require(['core_reportbuilder/filters'], function(filters) {
54
        filters.init({{id}}, {{contextid}});
55
    });
56
{{/js}}