Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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/cm/availabilitymodal
19
 
20
    Displays the activity availability modal form.
21
 
22
    Example context (json):
23
    {
24
        "allowstealth": true
25
    }
26
 
27
}}
28
<div class="d-flex flex-column p-3">
29
    <form>
30
        <div class="d-flex flex-row align-items-start py-3 border-bottom">
31
            <input
32
                class="mt-3 mx-2"
33
                type="radio"
34
                id="showRadio"
35
                name="option"
36
                value="cmShow"
37
                aria-describedby="showRadio_help"
38
            >
39
            <div class="icon-box mx-2">
40
                {{#pix}} t/hide, core {{/pix}}
41
            </div>
42
            <div class="w-100">
43
                <label class="mb-1" for="showRadio">
44
                    {{#str}} availability_show, core_courseformat {{/str}}
45
                </label>
46
                <div id="showRadio_help" class="small text-muted">
47
                    {{#str}} availability_show_help, core_courseformat {{/str}}
48
                </div>
49
            </div>
50
        </div>
51
        <div class="d-flex flex-row align-items-start py-3 {{#allowstealth}} border-bottom {{/allowstealth}}">
52
            <input
53
                class="mt-3 mx-2"
54
                type="radio"
55
                id="hideRadio"
56
                name="option"
57
                value="cmHide"
58
                aria-describedby="hideRadio_help"
59
            >
60
            <div class="icon-box mx-2">
61
                {{#pix}} t/show, core {{/pix}}
62
            </div>
63
            <div class="w-100">
64
                <label class="mt-1" for="hideRadio">
65
                    {{#str}} availability_hide, core_courseformat {{/str}}
66
                </label>
67
                <div id="hideRadio_help" class="small text-muted">
68
                    {{#str}} availability_hide_help, core_courseformat {{/str}}
69
                </div>
70
            </div>
71
        </div>
72
        {{#allowstealth}}
73
        <div class="d-flex flex-row align-items-start py-3">
74
            <input
75
                class="mt-3 mx-2"
76
                type="radio"
77
                id="stealthRadio"
78
                name="option"
79
                value="cmStealth"
80
                aria-describedby="stealthRadio_help"
81
            >
82
            <div class="icon-box mx-2">
83
                {{#pix}} t/stealth, core {{/pix}}
84
            </div>
85
            <div class="w-100">
86
                <label class="mt-1" for="stealthRadio">
87
                    {{#str}} availability_stealth, core_courseformat {{/str}}
88
                </label>
89
                <div id="stealthRadio_help" class="small text-muted">
90
                    {{#str}} availability_stealth_help, core_courseformat {{/str}}
91
                </div>
92
            </div>
93
        </div>
94
        {{/allowstealth}}
95
    </form>
96
</div>