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/sidebar-menu/area
19
 
20
    Template for showing report sidebar menu.
21
 
22
    Example context (json):
23
    {
24
        "sidebarmenucards": [{
25
            "menucards": [{
26
                "name": "General",
27
                "items": [{
28
                    "name": "Manually added users",
29
                    "identifier": "core_reportbuilder:users"
30
                }]
31
            }]
32
        }]
33
    }
34
}}
35
<div id="region-sidebar-menu-{{uniqid}}" class="reportbuilder-sidebar-menu d-flex flex-column mr-lg-3 mb-3 mb-lg-0" data-region="sidebar-menu">
36
    <div class="input-group mb-3">
37
        <label for="reportbuilder-sidebar-search">
38
            <span class="sr-only">{{#str}} search, core_search {{/str}}</span>
39
        </label>
40
        <input id="reportbuilder-sidebar-search"
41
               type="text"
42
               class="form-control rounded-left border-right-0"
43
               placeholder="{{#str}} search, core_search {{/str}}"
44
               aria-label="{{#str}} search, core_search {{/str}}"
45
               data-action="sidebar-search">
46
        <div class="input-group-append">
47
            <span class="input-group-text pl-2 pr-0 bg-white">
48
                {{#pix}} a/search, core {{/pix}}
49
            </span>
50
        </div>
51
    </div>
52
    <div class="reportbuilder-sidebar-menu-cards">
53
        {{#sidebarmenucards}}
54
            {{#menucards}}
55
                {{> core_reportbuilder/local/sidebar-menu/card}}
56
            {{/menucards}}
57
        {{/sidebarmenucards}}
58
    </div>
59
</div>
60
 
61
{{#js}}
62
    require(['core_reportbuilder/sidebar'], function(sidebar) {
63
        sidebar.init('#region-sidebar-menu-{{uniqid}}');
64
    });
65
{{/js}}