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/local/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 the report of.
|
|
|
21 |
* currentvalue - The string the user searched for previously.
|
|
|
22 |
|
|
|
23 |
Example context (json):
|
|
|
24 |
{
|
|
|
25 |
"courseid": 2,
|
|
|
26 |
"currentvalue": "Abed"
|
|
|
27 |
}
|
|
|
28 |
}}
|
|
|
29 |
<div class="flex-column h-100 w-100">
|
|
|
30 |
<span class="d-none" data-region="courseid" data-courseid="{{courseid}}" aria-hidden="true"></span>
|
|
|
31 |
{{< core/search_input_auto }}
|
|
|
32 |
{{$label}}{{#str}}
|
|
|
33 |
searchitems, core
|
|
|
34 |
{{/str}}{{/label}}
|
|
|
35 |
{{$placeholder}}{{#str}}
|
|
|
36 |
searchitems, core
|
|
|
37 |
{{/str}}{{/placeholder}}
|
|
|
38 |
{{$value}}{{currentvalue}}{{/value}}
|
|
|
39 |
{{$additionalattributes}}
|
|
|
40 |
role="combobox"
|
|
|
41 |
aria-expanded="true"
|
|
|
42 |
aria-controls="list-{{instance}}-result-listbox"
|
|
|
43 |
aria-autocomplete="list"
|
|
|
44 |
data-input-element="result-input-{{uniqid}}-{{instance}}"
|
|
|
45 |
{{/additionalattributes}}
|
|
|
46 |
{{/ core/search_input_auto }}
|
|
|
47 |
<input type="hidden" name="search" id="result-input-{{uniqid}}-{{instance}}"/>
|
|
|
48 |
<div data-region="searchplaceholder"></div>
|
|
|
49 |
</div>
|