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 gradereport_grader/collapse/collapsebody
|
|
|
16 |
|
|
|
17 |
The body of the column collapsing dropdown that contains the form and subsequent results from the search.
|
|
|
18 |
|
|
|
19 |
Example context (json):
|
|
|
20 |
{
|
|
|
21 |
"instance": 25,
|
|
|
22 |
"results": [
|
|
|
23 |
{
|
|
|
24 |
"name": "42",
|
|
|
25 |
"displayName": "The meaning of life",
|
|
|
26 |
"category": "Hitchhikers grade category"
|
|
|
27 |
}
|
|
|
28 |
],
|
|
|
29 |
"searchTerm": "Meaning of",
|
|
|
30 |
"userid": "42"
|
|
|
31 |
}
|
|
|
32 |
}}
|
|
|
33 |
<div class="flex-column h-100 w-100">
|
|
|
34 |
<span class="d-none" data-region="userid" data-userid="{{userid}}" aria-hidden="true"></span>
|
|
|
35 |
|
|
|
36 |
{{< core/search_input_auto }}
|
|
|
37 |
{{$label}}{{#str}}
|
|
|
38 |
searchcollapsedcolumns, core_grades
|
|
|
39 |
{{/str}}{{/label}}
|
|
|
40 |
{{$placeholder}}{{#str}}
|
|
|
41 |
searchcollapsedcolumns, core_grades
|
|
|
42 |
{{/str}}{{/placeholder}}
|
|
|
43 |
{{/ core/search_input_auto }}
|
|
|
44 |
<form class="columnsdropdownform flex-column h-100">
|
|
|
45 |
<fieldset>
|
|
|
46 |
<legend class="sr-only">{{#str}} aria:dropdowncolumns, gradereport_grader {{/str}}</legend>
|
|
|
47 |
<ul id="collapse-{{instance}}-listbox" class="searchresultitemscontainer overflow-auto py-2 px-1 list-group mx-0 text-truncate" data-region="search-result-items-container">
|
|
|
48 |
{{>gradereport_grader/collapse/collapseresults}}
|
|
|
49 |
</ul>
|
|
|
50 |
</fieldset>
|
|
|
51 |
<div class="d-flex mt-2">
|
|
|
52 |
<div class="d-flex align-items-center form-check">
|
|
|
53 |
<label id="check-all" class="selected-option-info text-truncate form-check-label d-block">
|
|
|
54 |
<input disabled class="form-check-input" type="checkbox" data-action="selectall">
|
|
|
55 |
{{#str}}selectall, core{{/str}}
|
|
|
56 |
</label>
|
|
|
57 |
</div>
|
|
|
58 |
<div class="flex-row ml-auto">
|
|
|
59 |
<input class="btn btn-outline-secondary pull-right mx-2" data-action="cancel" type="submit" value="{{#str}}closebuttontitle{{/str}}">
|
|
|
60 |
<input disabled class="btn btn-primary pull-right" data-action="save" type="submit" value="{{#str}}expand{{/str}}">
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
</form>
|
|
|
64 |
</div>
|