{{! 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 format_tiles/completion_icon Course module completion icon template The purpose of this template is to render a check box for the user to check which will be used to toggle completion via AJAX Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * cmid - course module id * tileid - which tile for * completionstate is completion complete or not * completionstateInverse inverse of previous * isediting - is user editing * sesskey - sesskey * modtitle - title of this module (i.e. activity name) * completionIsManual - is completion set to manual or not * completionstring - string to display on hover Example context (json): { "cmid": 123, "tileid": 1, "completionstate": "0", "completionstateInverse": "1", "isediting": 0, "sesskey": 1234567890, "modtitle": "Lecture 1 slides", "completionIsManual": 1, "completionstring": "Click to toggle completion status" } }} {{^isediting}} {{!complete-y-xxx is a class not an id as there will be two on the page if a modal is open}} {{#str}}complete, format_tiles{{/str}} {{#str}}notcomplete, format_tiles{{/str}} {{#completionIsManual}}
{{! completion_img_[id] is the **class** if the img, not its id, because we have two per page, one on the main page and one in the modal }}
{{/completionIsManual}} {{^completionIsManual}} {{/completionIsManual}} {{/isediting}} {{#isediting}}
{{/isediting}}