{{! 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, visible * canmanage - true if this user has permission to manage the frameworks * navigation - array of strings containing buttons for navigation }}
{{#navigation}} {{{.}}} {{/navigation}}
{{#competencyframeworks}} {{/competencyframeworks}}
{{#str}}listcompetencyframeworkscaption, tool_lp{{/str}}
{{#str}}competencyframeworkname, tool_lp{{/str}} {{#str}}competencies, core_competency{{/str}} {{#str}}category, tool_lp{{/str}} {{#str}}actions, tool_lp{{/str}}
{{{shortname}}} ({{idnumber}}) {{^visible}}{{#str}}hiddenhint, tool_lp{{/str}}{{/visible}} {{competenciescount}} {{contextnamenoprefix}} {{#canmanage}} {{/canmanage}}
{{^competencyframeworks}}

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

{{/competencyframeworks}} {{#js}} // Initialise the JS. require(['tool_lp/frameworkactions', 'tool_lp/menubar'], function(actionsMod, menubar) { actionsMod.init({{pagecontextid}}); menubar.enhance('.competencyframeworkactions', { "[data-action='deletecompetencyframework']": actionsMod.deleteHandler, "[data-action='duplicatecompetencyframework']": actionsMod.duplicateHandler, }); }); {{/js}}