{{! 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 tool_lp/manage_competencies_page Manage competencies template. Classes required for JS: Data attibutes required for JS: * data-action=add * data-enhance=tree * data-region=term * data-region=selected-competency Example context (json): { "framework": { "description": "Framework", "id": 0 }, "competencies": [], "canmanage": false } }}

{{{framework.shortname}}} {{#canmanage}} {{#pix}}t/edit, core, {{#str}}editcompetencyframework, tool_lp{{/str}}{{/pix}} {{/canmanage}}

{{{framework.description}}}

{{#str}}competencies, core_competency{{/str}}

{{#js}} // Initialise the JS. require(['tool_lp/tree', 'tool_lp/competencytree', 'tool_lp/competencyactions', 'jquery'], function(ariatree, treeModel, actions, $) { treeModel.init({{framework.id}}, {{#quote}} {{{framework.shortname}}} {{/quote}}, '{{search}}', '[data-enhance=tree]', {{canmanage}}, {{competencyid}}); actions.init(treeModel, {{pagecontextid}}, '{{{framework.taxonomies}}}', {{{rulesmodules}}}); }); {{/js}}