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 mod_bigbluebuttonbn/participant_form_add
|
|
|
19 |
|
|
|
20 |
This template renders a row in the participant add form
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"selectiontypevalue": "example",
|
|
|
25 |
"selectionvalue": "example",
|
|
|
26 |
"participanttype": "student",
|
|
|
27 |
"participantvalue": "",
|
|
|
28 |
"roles": [],
|
|
|
29 |
"canRemove": true
|
|
|
30 |
}
|
|
|
31 |
}}
|
|
|
32 |
|
|
|
33 |
<tr id="participant_list_tr_{{selectiontypevalue}}-{{selectionvalue}}">
|
|
|
34 |
<td class="participant_list_c0">
|
|
|
35 |
<b><i>{{participanttype}}</i></b>
|
|
|
36 |
</td>
|
|
|
37 |
<td class="participant_list_c1">
|
|
|
38 |
{{participantvalue}}
|
|
|
39 |
</td>
|
|
|
40 |
<td class="participant_list_c2">
|
|
|
41 |
<i>{{#str}}mod_form_field_participant_list_text_as, mod_bigbluebuttonbn{{/str}}</i>
|
|
|
42 |
</td>
|
|
|
43 |
<td class="participant_list_c3">
|
|
|
44 |
<select class="participant-select custom-select" name="select-for-{{selectiontypevalue}}-{{selectionvalue}}">
|
|
|
45 |
{{#roles}}
|
|
|
46 |
<option value="{{id}}" {{#isselected}}selected{{/isselected}}>{{label}}</option>
|
|
|
47 |
{{/roles}}
|
|
|
48 |
</select>
|
|
|
49 |
</td>
|
|
|
50 |
<td class="participant_list_c4">
|
|
|
51 |
{{#canRemove}}
|
|
|
52 |
<a class='btn btn-secondary btn-sm remove-button'>
|
|
|
53 |
{{#pix}}t/delete, core, {{#str}}mod_form_field_participant_list_action_remove, mod_bigbluebuttonbn{{/str}}{{/pix}}
|
|
|
54 |
</a>
|
|
|
55 |
{{/canRemove}}
|
|
|
56 |
</td>
|
|
|
57 |
</tr>
|