MDL-49462 tool_lp: added template competencies page
[moodle.git] / admin / tool / lp / templates / template_competencies_page.mustache
... / ...
CommitLineData
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">
22 <table class="generaltable fullwidth managecompetencies">
23 <tbody class="drag-parentnode">
24 {{#competencies}}
25 <tr class="drag-samenode" data-id="{{id}}">
26 <td>
27 <span class="drag-handlecontainer pull-left"></span>
28 <div class="pull-right">
29 <a href="#" data-action="delete-competency-link" data-id="{{id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
30 </div>
31 {{> tool_lp/competency_summary }}
32 </td>
33 </tr>
34 {{/competencies}}
35 </tbody>
36 </table>
37 {{^competencies}}
38 <p class="alert-info">
39 {{#str}}nocompetenciesintemplate, tool_lp{{/str}}
40 </p>
41 {{/competencies}}
42 </div>
43 <div data-region="actions">
44 <div class="pull-right">
45 {{#canmanagetemplatecompetencies}}
46 <button style="display: none">{{#str}}linktemplatecompetencies, tool_lp{{/str}}</button>
47 {{/canmanagetemplatecompetencies}}
48 </div>
49 {{#canmanagecompetencyframeworks}}
50 <p><a href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a></p>
51 {{/canmanagecompetencyframeworks}}
52 </div>
53</div>
54{{#js}}
55require(['tool_lp/competencies'], function(mod) {
56 (new mod({{templateid}}, 'template'));
57});
58{{/js}}