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
    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 mod_quiz/question_slot
16
 
17
    This template renders the question slot content.
18
 
19
    Example context (json):
20
    {
21
        "checkbox" : "<input id='selectquestion-1' name='selectquestion[]' type='checkbox' class='select-multiple-checkbox'>",
22
        "questionnumber" : "<span class='slotnumber'><span class='accesshide'>Question</span> 1</span>",
23
        "questionname" : "This is a test question",
24
        "questionicons" : "<i class='icon fa fa-search-plus fa-fw' title='Preview question' aria-label='Preview question'></i>",
25
        "canbeedited" : false,
26
        "questiondependencyicon" : "<span class='question_dependency_wrapper question_dependency_cannot_depend'></span>"
27
    }
28
}}
29
 
30
<div class="mod-indent-outer" id="mod-indent-outer-slot-{{slotid}}">
31
    {{{checkbox}}}
32
    {{{questionnumber}}}
33
    <div class="mod-indent"></div>
34
    <div class="activityinstance">
35
        {{{questionname}}}
36
    </div>
37
    <span class="actions">
38
        {{#versionselection}}
39
            <label for="version-{{slotid}}" class="sr-only">{{#str}}question_version, question{{/str}}</label>
40
            <select id="version-{{slotid}}" name="version" class="form-control mr-2 h-auto version-selection"
41
            data-action="mod_quiz-select_slot" data-slot-id="{{slotid}}">
42
                {{#versionoption}}
43
                    <option value="{{version}}" {{#selected}}selected="selected"{{/selected}}>{{versionvalue}}</option>
44
                {{/versionoption}}
45
            </select>
46
        {{/versionselection}}
47
        {{{questionicons}}}
48
    </span>
49
    {{#canbeedited}}
50
        {{{questiondependencyicon}}}
51
    {{/canbeedited}}
52
</div>
53
{{#draftversion}}
54
<div class="alert alert-danger" role="alert">{{#str}}questiondraftwillnotwork, mod_quiz{{/str}}</div>
55
{{/draftversion}}