MDL-53296_master tool_lp: Add unique index in course_competency
[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">
21 <div data-region="templatecompetencies">
cc8348db
DW
22 <div class="managecompetencies">
23 <div class="drag-parentnode">
54c5a739 24 {{#competencies}}
d04ea166 25 <div class="drag-samenode" data-id="{{competency.id}}">
cc8348db
DW
26 <div class="well">
27 {{#canmanagetemplatecompetencies}}
54c5a739
MN
28 <span class="drag-handlecontainer pull-left"></span>
29 <div class="pull-right">
d04ea166 30 <a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
54c5a739 31 </div>
cc8348db 32 {{/canmanagetemplatecompetencies}}
d04ea166 33 {{#competency}}
1ca0d7c8 34 {{> tool_lp/competency_summary }}
d04ea166 35 {{/competency}}
c3de87f6 36 <strong>{{#str}}linkedcourseslist, tool_lp{{/str}}</strong>
cc8348db
DW
37 {{#hascourses}}
38 <ul class="inline">
39 {{#linkedcourses}}
40 <li><a href="{{viewurl}}?id={{id}}">{{fullname}} ({{shortname}})</a></li>
41 {{/linkedcourses}}
42 </ul>
43 {{/hascourses}}
44 {{^hascourses}}
45 <span class="label label-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
46 {{/hascourses}}
47 </div>
48 </div>
54c5a739 49 {{/competencies}}
cc8348db
DW
50 </div>
51 </div>
54c5a739
MN
52 {{^competencies}}
53 <p class="alert-info">
54 {{#str}}nocompetenciesintemplate, tool_lp{{/str}}
55 </p>
56 {{/competencies}}
57 </div>
58 <div data-region="actions">
59 <div class="pull-right">
60 {{#canmanagetemplatecompetencies}}
61 <button style="display: none">{{#str}}linktemplatecompetencies, tool_lp{{/str}}</button>
62 {{/canmanagetemplatecompetencies}}
63 </div>
64 {{#canmanagecompetencyframeworks}}
65 <p><a href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a></p>
66 {{/canmanagecompetencyframeworks}}
67 </div>
68</div>
69{{#js}}
70require(['tool_lp/competencies'], function(mod) {
f0da26a4 71 (new mod({{templateid}}, 'template', {{pagecontextid}}));
54c5a739
MN
72});
73{{/js}}