{{! 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 . }} {{! Plan page template. }}

{{{plan.name}}} {{#plan.canbeedited}} {{#pix}}t/edit, core, {{#str}}editplan, tool_lp{{/str}}{{/pix}} {{/plan.canbeedited}}

{{#plan.canbeedited}}
{{/plan.canbeedited}}
{{{plan.description}}}
{{#str}}status, tool_lp{{/str}}
{{plan.statusname}} {{#plan.isinreview}} - {{plan.reviewer.fullname}} {{/plan.isinreview}} {{#plan.iscompleteallowed}} ({{#str}}completeplan, tool_lp{{/str}}) {{/plan.iscompleteallowed}} {{#plan.isreopenallowed}} ({{#str}}reopenplan, tool_lp{{/str}}) {{/plan.isreopenallowed}} {{#plan.isrequestreviewallowed}} ({{#str}}requestreview, tool_lp{{/str}}) {{/plan.isrequestreviewallowed}} {{#plan.iscancelreviewrequestallowed}} ({{#str}}cancelreviewrequest, tool_lp{{/str}}) {{/plan.iscancelreviewrequestallowed}} {{#plan.isstartreviewallowed}} ({{#str}}startreview, tool_lp{{/str}}) {{/plan.isstartreviewallowed}} {{#plan.isstopreviewallowed}} ({{#str}}stopreview, tool_lp{{/str}}) {{/plan.isstopreviewallowed}} {{#plan.isapproveallowed}} ({{#str}}planapprove, tool_lp{{/str}}) {{/plan.isapproveallowed}} {{#plan.isunapproveallowed}} ({{#str}}planunapprove, tool_lp{{/str}}) {{/plan.isunapproveallowed}}
{{#plan.duedate}}
{{#str}}duedate, tool_lp{{/str}}
{{plan.duedateformatted}}
{{/plan.duedate}} {{#plan.template}}
{{#str}}template, tool_lp{{/str}}
{{#canread}} {{/canread}} {{{plan.template.shortname}}}{{#canread}}{{/canread}} {{#plan.isunlinkallowed}} ({{#str}}unlinkplantemplate, tool_lp{{/str}}) {{/plan.isunlinkallowed}}
{{/plan.template}} {{#description}}
{{#str}}description{{/str}}
{{{plan.description}}}
{{/description}}
{{#str}}progress, tool_lp{{/str}}
{{< tool_lp/progress_bar}} {{$progresstext}} {{#str}}xcompetenciesproficientoutofy, tool_lp, { "x": "{{proficientcompetencycount}}", "y": "{{competencycount}}" }{{/str}} {{/progresstext}} {{$percentage}}{{proficientcompetencypercentage}}{{/percentage}} {{$percentlabel}}{{proficientcompetencypercentageformatted}} %{{/percentlabel}} {{/tool_lp/progress_bar}}
{{#plan.commentarea}} {{#canpostorhascomments}}
{{>tool_lp/comment_area}}
{{/canpostorhascomments}} {{/plan.commentarea}}

{{#str}}learningplancompetencies, tool_lp{{/str}}

{{^plan.iscompleted}} {{/plan.iscompleted}} {{#competencies}} {{#plan.iscompleted}} {{/plan.iscompleted}} {{^plan.iscompleted}} {{/plan.iscompleted}} {{^plan.iscompleted}} {{/plan.iscompleted}} {{/competencies}}
{{#str}}shortname, tool_lp{{/str}} {{#str}}rating, tool_lp{{/str}} {{#str}}proficient, tool_lp{{/str}}{{#str}}status, tool_lp{{/str}} {{#str}}actions, tool_lp{{/str}}
{{#plan.canbeedited}} {{/plan.canbeedited}} {{{competency.shortname}}} {{competency.idnumber}} {{#comppath}}
{{#str}}path, tool_lp{{/str}} {{> tool_lp/competency_path }} {{/comppath}}
{{usercompetencyplan.gradename}} {{usercompetencyplan.proficiencyname}}{{usercompetency.gradename}} {{usercompetency.proficiencyname}} {{usercompetency.statusname}}
{{^competencies}}

{{#str}}nocompetenciesinlearningplan, tool_lp{{/str}}

{{/competencies}}
{{#js}} require(['tool_lp/competencies', 'tool_lp/planactions', 'tool_lp/user_competency_workflow', 'tool_lp/user_competency_plan_popup'], function(mod, actionsMod, UserCompWorkflow, Popup) { var planActions = new actionsMod('plan'); (new mod({{plan.id}}, 'plan', {{contextid}})); (new Popup('[data-region=plan-page]', '[data-usercompetency=true]', {{plan.id}})); planActions.registerEvents(); var ucw = new UserCompWorkflow(); ucw.enhanceMenubar('.user-competency-actions'); ucw.on('status-changed', planActions.refresh.bind(planActions, '[data-region="plan-summary"]')); ucw.on('error-occured', planActions.refresh.bind(planActions, '[data-region="plan-summary"]')); }); {{/js}}