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_group/comboboxsearch/group_selector
|
|
|
19 |
|
|
|
20 |
The group selector trigger element.
|
|
|
21 |
|
|
|
22 |
Context variables required for this template:
|
|
|
23 |
* label - The label text fot the group selector element.
|
|
|
24 |
* group - The value of the group selector element (id of the preselected group)
|
|
|
25 |
* selectedgroup - The text of the selected group option.
|
|
|
26 |
|
|
|
27 |
Example context (json):
|
|
|
28 |
{
|
|
|
29 |
"label": "Select separate groups",
|
|
|
30 |
"group": "21",
|
|
|
31 |
"selectedgroup": "Group 1"
|
|
|
32 |
}
|
|
|
33 |
}}
|
|
|
34 |
<span class="d-none" data-region="groupid" data-groupid="{{group}}"></span>
|
|
|
35 |
<div class="align-items-center d-flex">
|
|
|
36 |
<div class="d-block pr-3 text-truncate">
|
|
|
37 |
<span class="d-block small" aria-hidden="true">
|
|
|
38 |
{{label}}
|
|
|
39 |
</span>
|
|
|
40 |
<span class="p-0 font-weight-bold">
|
|
|
41 |
{{selectedgroup}}
|
|
|
42 |
</span>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|