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 gradereport_grader/cell
19
 
20
    Cell template.
21
 
22
    Example context (json):
23
    {
24
        "iseditable": "true",
25
        "statusicons": "<div class='grade_icons'><i class='icon fa fa-lock fa-fw text-muted' title='Locked' role='img' aria-label='Locked'></i></div>",
26
        "actionmenu": "<div class='action-menu moodle-actionmenu grader' id='action-menu-8' data-enhance='moodle-core-actionmenu'></div>",
27
        "id": "grade_313_624",
28
        "label": "grade_313_624",
29
        "title": "Grade",
30
        "extraclasses": "statusicons",
31
        "value": "Text information",
32
        "tabindex": "1",
33
        "name": "grade[313][624]"
34
    }
35
}}
36
<div class="d-flex flex-column h-100" data-collapse="content">
37
    <div class="d-flex">
38
        <div class="d-flex flex-grow-1">
39
            {{#iseditable}}
40
                {{#scale}}
41
                    {{>core_grades/grades/grader/scale}}
42
                {{/scale}}
43
                {{^scale}}
44
                    {{>core_grades/grades/grader/input}}
45
                {{/scale}}
46
            {{/iseditable}}
47
            {{^iseditable}}
48
                {{>core_grades/grades/grader/text}}
49
            {{/iseditable}}
50
        </div>
51
        <div>
52
            {{{actionmenu}}}
53
        </div>
54
    </div>
55
    <div class="d-flex flex-grow-1 align-items-end">
56
        {{{statusicons}}}
57
    </div>
58
</div>