{{! 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 . }} {{! Manage competency frameworks template. Classes required for JS: * drag-parentnode * drag-handlecontainer * drag-samenode * competencyframeworkactions Data attributes required for JS: * data-region = managecompetencies * data-frameworkid = id * data-action = deletecompetencyframework Context variables required for this template: * competencyframeworks - array of objects containing id, shortname, idnumber, sortorder, visible * canmanage - true if this user has permission to manage the frameworks * navigation - array of strings containing buttons for navigation }}
{{#competencyframeworks}} {{/competencyframeworks}}
{{#str}}listcompetencyframeworkscaption, tool_lp{{/str}}
{{#str}}competencyframeworkname, tool_lp{{/str}} {{#str}}competencies, tool_lp{{/str}} {{#str}}actions, tool_lp{{/str}}
{{shortname}} {{idnumber}} {{^visible}}{{#str}}hiddenhint, tool_lp{{/str}}{{/visible}} {{competencies_count}} {{#canmanage}} {{/canmanage}}
{{^competencyframeworks}}

{{#str}}nocompetencyframeworks, tool_lp{{/str}}

{{/competencyframeworks}}
{{#navigation}} {{{.}}} {{/navigation}}
{{#js}} // Initialise the JS. require(['tool_lp/frameworkdelete', 'core/menu', 'tool_lp/frameworkmove'], function(deleteMod, menu, moveMod) { deleteMod.init(); moveMod.init(); menu.menu('{{#str}}edit{{/str}}', '.competencyframeworkactions'); }); {{/js}}