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_courseformat/local/content/section/availabilitymodal
|
|
|
19 |
|
|
|
20 |
Displays the section availability modal form.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
}
|
|
|
25 |
|
|
|
26 |
}}
|
|
|
27 |
<div class="d-flex flex-column p-3">
|
|
|
28 |
<form>
|
|
|
29 |
<div class="d-flex flex-row align-items-start py-3 border-bottom">
|
|
|
30 |
<input
|
|
|
31 |
class="mt-3 mx-2"
|
|
|
32 |
type="radio"
|
|
|
33 |
id="showSectionRadio"
|
|
|
34 |
name="option"
|
|
|
35 |
value="sectionShow"
|
|
|
36 |
aria-describedby="showRadio_help"
|
|
|
37 |
>
|
|
|
38 |
<div class="icon-box mx-2">
|
|
|
39 |
{{#pix}} t/hide, core {{/pix}}
|
|
|
40 |
</div>
|
|
|
41 |
<div class="w-100">
|
|
|
42 |
<label class="mb-1" for="showSectionRadio">
|
|
|
43 |
{{#str}} availability_show, core_courseformat {{/str}}
|
|
|
44 |
</label>
|
|
|
45 |
<div id="showRadio_help" class="small text-muted">
|
|
|
46 |
{{#str}} availability_show_help, core_courseformat {{/str}}
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="d-flex flex-row align-items-start py-3">
|
|
|
51 |
<input
|
|
|
52 |
class="mt-3 mx-2"
|
|
|
53 |
type="radio"
|
|
|
54 |
id="hideSectionRadio"
|
|
|
55 |
name="option"
|
|
|
56 |
value="sectionHide"
|
|
|
57 |
aria-describedby="hideRadio_help"
|
|
|
58 |
>
|
|
|
59 |
<div class="icon-box mx-2">
|
|
|
60 |
{{#pix}} t/show, core {{/pix}}
|
|
|
61 |
</div>
|
|
|
62 |
<div class="w-100">
|
|
|
63 |
<label class="mb-1" for="hideSectionRadio">
|
|
|
64 |
{{#str}} availability_hide, core_courseformat {{/str}}
|
|
|
65 |
</label>
|
|
|
66 |
<div id="hideRadio_help" class="small text-muted">
|
|
|
67 |
{{#str}} availability_hide_help, core_courseformat {{/str}}
|
|
|
68 |
</div>
|
|
|
69 |
</div>
|
|
|
70 |
</div>
|
|
|
71 |
</form>
|
|
|
72 |
</div>
|