芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/admin/tool/lp/templates/manage_competencies_page.mustache
{{! 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}}
{{#str}}search, tool_lp{{/str}}
{{#pix}}a/search, , {{#str}}search{{/str}}{{/pix}}
{{> tool_lp/loading }}
{{#str}}selectedcompetency, tool_lp{{/str}}
{{#str}}edit{{/str}}
{{#canmanage}}
{{#pix}}t/edit{{/pix}} {{#str}}edit{{/str}}
{{#pix}}t/move{{/pix}} {{#str}}movetonewparent, tool_lp{{/str}}
{{#pix}}t/delete{{/pix}} {{#str}}delete{{/str}}
{{#pix}}t/up{{/pix}} {{#str}}moveup{{/str}}
{{#pix}}t/down{{/pix}} {{#str}}movedown{{/str}}
{{/canmanage}}
{{#pix}}t/viewdetails{{/pix}} {{#str}}linkedcourses, tool_lp{{/str}}
{{#canmanage}}
{{#pix}}t/add{{/pix}} {{#str}}addcrossreferencedcompetency, tool_lp{{/str}}
{{#pix}}t/edit{{/pix}} {{#str}}competencyrule, tool_lp{{/str}}
{{/canmanage}}
{{#str}}nocompetencyselected, tool_lp{{/str}}
{{#canmanage}}
{{#pix}}t/add{{/pix}}
{{/canmanage}}
{{#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}}