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
    Moodle is free software: you can redistribute it and/or modify
4
    it under the terms of the GNU General Public License as published by
5
    the Free Software Foundation, either version 3 of the License, or
6
    (at your option) any later version.
7
    Moodle is distributed in the hope that it will be useful,
8
    but WITHOUT ANY WARRANTY; without even the implied warranty of
9
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
    GNU General Public License for more details.
11
    You should have received a copy of the GNU General Public License
12
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
13
}}
14
{{!
15
    @template core_group/comboboxsearch/searchbody
16
 
17
    Wrapping template for search input.
18
 
19
    Context variables required for this template:
20
    * courseid - The id of the course to search within.
21
    * groupid - The id of the group to search within.
22
    * currentvalue - The prefill value for the search input if provided
23
 
24
    Example context (json):
25
    {
26
        "courseid": 2,
27
        "groupid": 25,
28
        "currentvalue": "bar"
29
    }
30
}}
31
<div class="flex-column h-100 w-100">
32
    <span class="d-none" data-region="courseid" data-courseid="{{courseid}}"></span>
33
    <span class="d-none" data-region="groupid" data-groupid="{{groupid}}"></span>
34
    <span class="d-none" data-region="instance" data-instance="{{instance}}"></span>
35
 
36
    {{< core/search_input_auto }}
37
        {{$label}}{{#str}}
38
            searchgroups, core
39
        {{/str}}{{/label}}
40
        {{$placeholder}}{{#str}}
41
            searchgroups, core
42
        {{/str}}{{/placeholder}}
43
        {{$value}}{{currentvalue}}{{/value}}
44
        {{$additionalattributes}}
45
            role="combobox"
46
            aria-expanded="true"
47
            aria-controls="groups-{{instance}}-result-listbox"
48
            aria-autocomplete="list"
49
            data-input-element="input-{{uniqid}}-{{instance}}"
50
        {{/additionalattributes}}
51
    {{/ core/search_input_auto }}
52
    <input type="hidden" name="search" id="input-{{uniqid}}-{{instance}}"/>
53
 
54
    <div data-region="searchplaceholder"></div>
55
</div>