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 tool_lp/template_statistics
19
 
20
    IDs required for JS:
21
    * none
22
 
23
    Classes required for JS:
24
    * none
25
 
26
    Data attributes required for JS:
27
    * none
28
 
29
    Context variables required for this template:
30
 
31
    See competency/classes/external/template_statistics_exporter
32
 
33
    Example context (json):
34
    {
35
        "linkedcompetencycount": 4,
36
        "competencycount": 8,
37
        "linkedcompetencypercentage": 50,
38
        "plancount": 40,
39
        "completedplancount": 30,
40
        "completedplanpercentage": 75
41
    }
42
 
43
}}
44
{{!
45
    Template statistics template.
46
}}
47
{{#competencycount}}
48
<div data-region="templatestatistics" class="border p-2 mb-2">
49
    {{< tool_lp/progress_bar}}
50
        {{$progresstext}}
51
            {{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
52
        {{/progresstext}}
53
        {{$percentage}}{{linkedcompetencypercentage}}{{/percentage}}
54
        {{$percentlabel}}{{linkedcompetencypercentageformatted}}&nbsp;%{{/percentlabel}}
55
    {{/tool_lp/progress_bar}}
56
    {{#plancount}}
57
        {{< tool_lp/progress_bar}}
58
            {{$progresstext}}
59
                {{#str}}xplanscompletedoutofy, tool_lp, { "x": "{{completedplancount}}", "y": "{{plancount}}" } {{/str}}
60
            {{/progresstext}}
61
            {{$percentage}}{{completedplanpercentage}}{{/percentage}}
62
            {{$percentlabel}}{{completedplanpercentageformatted}}&nbsp;%{{/percentlabel}}
63
        {{/tool_lp/progress_bar}}
64
    {{/plancount}}
65
    {{#usercompetencyplancount}}
66
        {{< tool_lp/progress_bar}}
67
            {{$progresstext}}
68
                {{#str}}averageproficiencyrate, tool_lp, {{proficientusercompetencyplanpercentageformatted}} {{/str}}
69
            {{/progresstext}}
70
            {{$percentage}}{{proficientusercompetencyplanpercentage}}{{/percentage}}
71
            {{$percentlabel}}{{proficientusercompetencyplanpercentageformatted}}&nbsp;%{{/percentlabel}}
72
        {{/tool_lp/progress_bar}}
73
    {{/usercompetencyplancount}}
74
    {{#leastproficientcount}}
75
    <div>
76
        <div>
77
            <p>{{#str}}competenciesmostoftennotproficient, tool_lp{{/str}}</p>
78
        </div>
79
        <div>
80
            {{#leastproficient}}
81
                {{#showcompetencylinks}}
82
                <a href="#competency_link_{{id}}">
83
                {{/showcompetencylinks}}
84
                <div><p>{{{shortname}}} <em>{{idnumber}}</em></p></div>
85
                {{#showcompetencylinks}}
86
                </a>
87
                {{/showcompetencylinks}}
88
            {{/leastproficient}}
89
        </div>
90
    </div>
91
    {{/leastproficientcount}}
92
</div>
93
{{/competencycount}}