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_grades/category_settings
19
 
20
    This template renders action menu for a given cell.
21
    Example context (json):
22
    {
23
        "aggregation": "Natural",
24
        "aggregateonlygraded": 1,
25
        "aggregateoutcomes": 0,
26
        "droplow": 1,
27
        "keephigh": 1,
28
        "calculatedgrade": "calculated grade"
29
    }
30
}}
31
<div class="d-flex flex-wrap" role="list">
32
    {{#calculatedgrade}}
33
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
34
            <strong>{{calculatedgrade}}</strong>
35
        </span>
36
    {{/calculatedgrade}}
37
    {{#aggregation}}
38
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
39
            <strong>{{aggregation}}</strong>
40
        </span>
41
    {{/aggregation}}
42
    {{#aggregateonlygraded}}
43
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
44
            <strong>{{#str}}aggregateonlygraded, grades{{/str}}</strong>
45
        </span>
46
    {{/aggregateonlygraded}}
47
    {{#aggregateoutcomes}}
48
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
49
            <strong>{{#str}}aggregateoutcomes, grades{{/str}}</strong>
50
        </span>
51
    {{/aggregateoutcomes}}
52
    {{#droplow}}
53
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
54
            <strong>{{#str}}droplowestvalues, grades, {{droplow}}{{/str}}</strong>
55
        </span>
56
    {{/droplow}}
57
    {{#keephigh}}
58
        <span class="badge rounded-pill bg-light text-dark" role="listitem">
59
            <strong>{{#str}}keephigh, grades{{/str}}</strong>
60
        </span>
61
    {{/keephigh}}
62
</div>