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 gradingform_guide/comment_chooser
19
 
20
    Moodle comment chooser template for marking guide.
21
 
22
    The purpose of this template is to render a list of frequently used comments that can be used by the comment chooser dialog.
23
 
24
    Classes required for JS:
25
    * none
26
 
27
    Data attributes required for JS:
28
    * none
29
 
30
    Context variables required for this template:
31
    * criterionId The criterion ID this chooser template is being generated for.
32
    * comments Array of id / description pairs.
33
 
34
    Example context (json):
35
    {
36
        "criterionId": "1",
37
        "comments": [
38
            {
39
                "id": "1",
40
                "description": "Test comment description 1"
41
            },
42
            {
43
                "id": "2",
44
                "description": "Test comment description 2"
45
            }
46
        ]
47
    }
48
}}
49
 
50
 
51
<div class="gradingform_guide_comment_chooser" id="comment_chooser">
52
    <div class="list-group">
53
        {{#comments}}
54
            <button class="list-group-item list-group-item-action" id="comment-option-{{criterionId}}-{{id}}" tabindex="0">
55
                {{description}}
56
            </button>
57
        {{/comments}}
58
    </div>
59
</div>