{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the 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 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see . }} {{! @template gradingform_rubric/grades/grader/gradingpanel Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * instanceid: Instance of the module this grading form belongs too * criterion: A gradeable item in the Marking Guide * name: Name of the gradeable item * id: ID of the gradeable item * description: Description shown to students for this gradeable item * descriptionmarkers: Description shown to teachers for this gradeable item * maxscore: Max allowable assinable points for this item * score: Current score assigned to the learner for this item * remark: Text input for the teacher to relay to the student * hascomments: Flag for frequently used comments * comments: Array of frequently used comments * description: Description of a frequently used comment Example context (json): { "instanceid": "42", "criterion": [ { "name": "Motivation", "id": 13, "description": "Show your motivation to rock climbing", "descriptionmarkers": "Does the student show interest in climbing?", "maxscore": 37, "score": 20, "remark": "That's great!", "hascomments": true, "comments": [ {"description": "Great work!"}, {"description": "You should really try it before jumping to conclusions"} ] } ] } }}
{{#criterion}}
{{name}}
{{{description}}} {{#descriptionmarkers}}
{{{descriptionmarkers}}} {{/descriptionmarkers}}
{{#hascomments}} {{/hascomments}}
{{#hascomments}}
{{#str}}comments, gradingform_guide{{/str}}
{{#comments}} {{/comments}}
{{/hascomments}}
{{/criterion}}
{{#js}} require(['gradingform_guide/grades/grader/gradingpanel/comments', 'core/auto_rows'], function(Comments, AutoRows) { Comments.init('gradingform_guide-{{uniqid}}'); AutoRows.init(document.getElementById('gradingform_guide-{{uniqid}}')); }); {{/js}}