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
 
38
        <div class="search-input-group w-100">
39
            <label for="reportbuilder-sidebar-search">
40
                <span class="sr-only">{{#str}} search, core_search {{/str}}</span>
41
            </label>
42
            <span class="search-input-icon">
43
                <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
44
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 19.25L15.5 15.5M4.75 11C4.75 7.54822 7.54822 4.75 11 4.75C14.4518 4.75 17.25 7.54822 17.25 11C17.25 14.4518 14.4518 17.25 11 17.25C7.54822 17.25 4.75 14.4518 4.75 11Z"></path>
45
                </svg>
46
            </span>
47
            <input type="text"
48
            id="searchinput-{{uniqid}}"
49
            type="text"
50
            class="search-input"
51
            placeholder="{{#str}} search, core_search {{/str}}"
52
            aria-label="{{#str}} search, core_search {{/str}}"
53
            data-action="sidebar-search">
54
            <button type="submit" class="search-input-btn">
55
                <svg width="22" height="22" fill="none" viewBox="0 0 24 24">
56
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.75 6.75L19.25 12L13.75 17.25"></path>
57
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H4.75"></path>
58
                </svg>
59
                <span class="sr-only">{{ searchstring }}</span>
60
            </button>
61
        </div>
62
 
63
    </div>
64
    <div class="reportbuilder-sidebar-menu-cards">
65
        {{#sidebarmenucards}}
66
            {{#menucards}}
67
                {{> core_reportbuilder/local/sidebar-menu/card}}
68
            {{/menucards}}
69
        {{/sidebarmenucards}}
70
    </div>
71
</div>
72
 
73
{{#js}}
74
    require(['core_reportbuilder/sidebar'], function(sidebar) {
75
        sidebar.init('#region-sidebar-menu-{{uniqid}}');
76
    });
77
{{/js}}