MDL-53568 tool_lp: Fix getting proficiency of grade not in scaleconfig
[moodle.git] / admin / tool / lp / templates / template_competencies_page.mustache
CommitLineData
54c5a739
MN
1{{!
2 This file is part of Moodle - http://moodle.org/
3
4 Moodle is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 Moodle is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16}}
17{{!
18 Template competencies template.
19}}
20<div data-region="templatecompetenciespage">
3edcd295
DW
21 {{#statistics}}
22 {{> tool_lp/template_statistics }}
23 {{/statistics}}
24 <div data-region="actions">
25 {{#canmanagecompetencyframeworks}}
26 <div class="pull-right">
27 <p><a href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a></p>
28 </div>
29 {{/canmanagecompetencyframeworks}}
30 {{#canmanagetemplatecompetencies}}
31 <p>
32 <button style="display: none">{{#str}}linktemplatecompetencies, tool_lp{{/str}}</button>
33 </p>
34 {{/canmanagetemplatecompetencies}}
35 </div>
54c5a739 36 <div data-region="templatecompetencies">
cc8348db
DW
37 <div class="managecompetencies">
38 <div class="drag-parentnode">
54c5a739 39 {{#competencies}}
d04ea166 40 <div class="drag-samenode" data-id="{{competency.id}}">
cc8348db
DW
41 <div class="well">
42 {{#canmanagetemplatecompetencies}}
54c5a739
MN
43 <span class="drag-handlecontainer pull-left"></span>
44 <div class="pull-right">
d04ea166 45 <a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
54c5a739 46 </div>
cc8348db 47 {{/canmanagetemplatecompetencies}}
d04ea166 48 {{#competency}}
3edcd295 49 <a id="competency-info-link-{{competency.idnumber}}"></a>
1ca0d7c8 50 {{> tool_lp/competency_summary }}
d04ea166 51 {{/competency}}
c3de87f6 52 <strong>{{#str}}linkedcourseslist, tool_lp{{/str}}</strong>
cc8348db
DW
53 {{#hascourses}}
54 <ul class="inline">
55 {{#linkedcourses}}
56 <li><a href="{{viewurl}}?id={{id}}">{{fullname}} ({{shortname}})</a></li>
57 {{/linkedcourses}}
58 </ul>
59 {{/hascourses}}
60 {{^hascourses}}
61 <span class="label label-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
62 {{/hascourses}}
63 </div>
64 </div>
54c5a739 65 {{/competencies}}
cc8348db
DW
66 </div>
67 </div>
54c5a739
MN
68 {{^competencies}}
69 <p class="alert-info">
70 {{#str}}nocompetenciesintemplate, tool_lp{{/str}}
71 </p>
72 {{/competencies}}
73 </div>
54c5a739
MN
74</div>
75{{#js}}
76require(['tool_lp/competencies'], function(mod) {
f0da26a4 77 (new mod({{templateid}}, 'template', {{pagecontextid}}));
54c5a739
MN
78});
79{{/js}}