AutorÃa | Ultima modificación | Ver Log |
{{!This file is part of Moodle - http://moodle.org/Moodle is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.Moodle is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with Moodle. If not, see <http://www.gnu.org/licenses/>.}}{{!@template tool_lp/course_competency_statisticsIDs required for JS:* noneClasses required for JS:* noneData attributes required for JS:* noneContext variables required for this template:See competency/classes/external/course_competency_statistics_exporterExample context (json):{"competencycount": 4,"canbegradedincourse": true,"canmanagecoursecompetencies": true,"proficientcompetencycount": 3,"proficientcompetencypercentage": 75,"proficientcompetencypercentageformatted": 75.0,"leastproficientcount": 1,"leastproficient": [{ "id": 1, "shortname": "Comp 1", "idnumber": "C1" }]}}}{{!Template statistics template.}}{{#competencycount}}<div data-region="coursecompetencystatistics" class="border p-2 mb-2">{{#canbegradedincourse}}{{< tool_lp/progress_bar}}{{$progresstext}}{{#str}}xcompetenciesproficientoutofyincourse, tool_lp, { "x": "{{proficientcompetencycount}}", "y": "{{competencycount}}" } {{/str}}{{/progresstext}}{{$percentage}}{{proficientcompetencypercentage}}{{/percentage}}{{$percentlabel}}{{proficientcompetencypercentageformatted}} %{{/percentlabel}}{{/tool_lp/progress_bar}}{{/canbegradedincourse}}{{#canmanagecoursecompetencies}}{{#leastproficientcount}}<div><div><p>{{#str}}competenciesmostoftennotproficientincourse, tool_lp{{/str}}</p></div><div>{{#leastproficient}}<a href="#competency-info-link-{{id}}"><div><p>{{{shortname}}} <em>{{idnumber}}</em></p></div></a>{{/leastproficient}}</div></div>{{/leastproficientcount}}{{/canmanagecoursecompetencies}}</div>{{/competencycount}}