{{! 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 * criteria: A gradeable item in the Marking Guide * id: The ID of the criteria * description: Description of the criteria * levels: The level that a criteria can be graded at * criterionid: The ID of the criteria * checked: Flag for if this is the currently selected level * definition: Definition of the level * remark: Text input for the teacher to relay to the student Example context (json): { "instanceid": "42", "criteria": [ { "id": 13, "description": "Show your motivation to rock climbing", "levels": [ { "criterionid": 13, "checked": true, "definition": "Great work!" } ], "remark": "That's great!" } ] } }}
{{#criteria}}
{{{description}}}
{{#levels}}
{{/levels}}
{{/criteria}}
{{#js}} require(['core/auto_rows'], function(AutoRows) { AutoRows.init(document.getElementById('gradingform_rubric-{{uniqid}}')); }); {{/js}}