2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template tool_lp/template_statistics
23 Classes required for JS:
26 Data attributes required for JS:
29 Context variables required for this template:
31 See competency/classes/external/template_statistics_exporter
33 Example context (json):
35 "linkedcompetencycount": 4,
37 "linkedcompetencypercentage": 50,
39 "completedplancount": 30,
40 "completedplanpercentage": 75
45 Template statistics template.
48 <div data-region="templatestatistics" class="well">
49 {{< tool_lp/progress_bar}}
51 {{#str}}xcompetencieslinkedoutofy, tool_lp, { "x": "{{linkedcompetencycount}}", "y": "{{competencycount}}" } {{/str}}
53 {{$percentage}}{{linkedcompetencypercentage}}{{/percentage}}
54 {{$percentlabel}}{{linkedcompetencypercentageformatted}} %{{/percentlabel}}
55 {{/tool_lp/progress_bar}}
57 {{< tool_lp/progress_bar}}
59 {{#str}}xplanscompletedoutofy, tool_lp, { "x": "{{completedplancount}}", "y": "{{plancount}}" } {{/str}}
61 {{$percentage}}{{completedplanpercentage}}{{/percentage}}
62 {{$percentlabel}}{{completedplanpercentageformatted}} %{{/percentlabel}}
63 {{/tool_lp/progress_bar}}
65 {{#usercompetencyplancount}}
66 {{< tool_lp/progress_bar}}
68 {{#str}}averageproficiencyrate, tool_lp, {{proficientusercompetencyplanpercentageformatted}} {{/str}}
70 {{$percentage}}{{proficientusercompetencyplanpercentage}}{{/percentage}}
71 {{$percentlabel}}{{proficientusercompetencyplanpercentageformatted}} %{{/percentlabel}}
72 {{/tool_lp/progress_bar}}
73 {{/usercompetencyplancount}}
74 {{#leastproficientcount}}
77 <p>{{#str}}competenciesmostoftennotproficient, tool_lp{{/str}}</p>
81 {{#showcompetencylinks}}
82 <a href="#competency_link_{{id}}">
83 {{/showcompetencylinks}}
84 <div><p>{{{shortname}}} <em>{{idnumber}}</em></p></div>
85 {{#showcompetencylinks}}
87 {{/showcompetencylinks}}
91 {{/leastproficientcount}}