{{! 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 . }} {{! User learning plans page. Classes required for JS: * planactions Data attributes required for JS: * data-region = plans * data-planid = plans.id * data-userid = userid * data-action = deleteplan Context variables required for this template: * userid - The plan user id * pluginbaseurl - tool_lp base url * plans - The list of learning plans * navigation - array of strings containing buttons for navigation }}
{{#navigation}} {{{.}}} {{/navigation}}
{{#plans}} {{/plans}}
{{#str}}listplanscaption, tool_lp{{/str}}
{{#str}}planname, tool_lp{{/str}} {{#str}}templatebased, tool_lp{{/str}} {{#str}}status, tool_lp{{/str}} {{#str}}actions, tool_lp{{/str}}
{{{name}}} {{#isbasedontemplate}} {{#str}}yes{{/str}} {{/isbasedontemplate}} {{^isbasedontemplate}} {{#str}}no{{/str}} {{/isbasedontemplate}} {{statusname}} {{#canmanage}}
{{/canmanage}}
{{^plans}}

{{#str}}nouserplans, tool_lp{{/str}}

{{/plans}} {{#canreaduserevidence}} {{/canreaduserevidence}} {{#js}} // Initialise the JS. require(['tool_lp/planactions'], function(ActionsMod) { var planActions = new ActionsMod('plans'); planActions.enhanceMenubar('.planactions'); }); {{/js}}