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
<hr class="hr-small" />
49
<div data-region="templatestatistics">
50
    {{< tool_lp/progress_bar}}
51
        {{$progresstext}}
52
            {{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
53
        {{/progresstext}}
54
        {{$percentage}}{{linkedcompetencypercentage}}{{/percentage}}
55
        {{$percentlabel}}{{linkedcompetencypercentageformatted}}&nbsp;%{{/percentlabel}}
56
    {{/tool_lp/progress_bar}}
57
    {{#plancount}}
58
        {{< tool_lp/progress_bar}}
59
            {{$progresstext}}
60
                {{#str}}xplanscompletedoutofy, tool_lp, { "x": "{{completedplancount}}", "y": "{{plancount}}" } {{/str}}
61
            {{/progresstext}}
62
            {{$percentage}}{{completedplanpercentage}}{{/percentage}}
63
            {{$percentlabel}}{{completedplanpercentageformatted}}&nbsp;%{{/percentlabel}}
64
        {{/tool_lp/progress_bar}}
65
    {{/plancount}}
66
    {{#usercompetencyplancount}}
67
        {{< tool_lp/progress_bar}}
68
            {{$progresstext}}
69
                {{#str}}averageproficiencyrate, tool_lp, {{proficientusercompetencyplanpercentageformatted}} {{/str}}
70
            {{/progresstext}}
71
            {{$percentage}}{{proficientusercompetencyplanpercentage}}{{/percentage}}
72
            {{$percentlabel}}{{proficientusercompetencyplanpercentageformatted}}&nbsp;%{{/percentlabel}}
73
        {{/tool_lp/progress_bar}}
74
    {{/usercompetencyplancount}}
75
    {{#leastproficientcount}}
76
    <div>
77
        <div>
78
            <p>{{#str}}competenciesmostoftennotproficient, tool_lp{{/str}}</p>
79
        </div>
80
        <div>
81
            {{#leastproficient}}
82
                {{#showcompetencylinks}}
83
                <a href="#competency_link_{{id}}">
84
                {{/showcompetencylinks}}
85
                <div><p>{{{shortname}}} <em>{{idnumber}}</em></p></div>
86
                {{#showcompetencylinks}}
87
                </a>
88
                {{/showcompetencylinks}}
89
            {{/leastproficient}}
90
        </div>
91
    </div>
92
    {{/leastproficientcount}}
93
</div>
94
<hr class="hr-small" />
95
{{/competencycount}}