MDL-64506 templates: Move BS2 labels to BS4 badges
[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">
f864aa4c 21 <h2>
32cf4bcb 22 {{{template.shortname}}}
f864aa4c
FM
23 {{#template.canmanage}}
24 <a href="{{pluginbaseurl}}/edittemplate.php?id={{template.id}}&amp;pagecontextid={{pagecontextid}}">{{#pix}}t/edit, core, {{#str}}edittemplate, tool_lp{{/str}}{{/pix}}</a>
25 {{/template.canmanage}}
26 </h2>
cb22606c 27 <div>{{{template.description}}}</div>
de3b9193
FM
28 {{#canmanagetemplatecompetencies}}
29 <div data-region="actions" class="clearfix">
184f9b12 30 <div class="pull-left">
207136f2 31 <button disabled class="btn btn-secondary">{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
3edcd295 32 </div>
3edcd295 33 </div>
de3b9193 34 {{/canmanagetemplatecompetencies}}
207136f2 35 <h3 class="m-t-1">{{#str}}templatecompetencies, tool_lp{{/str}}</h3>
184f9b12
SG
36 {{#statistics}}
37 {{> tool_lp/template_statistics }}
38 {{/statistics}}
54c5a739 39 <div data-region="templatecompetencies">
cc8348db
DW
40 <div class="managecompetencies">
41 <div class="drag-parentnode">
54c5a739 42 {{#competencies}}
d04ea166 43 <div class="drag-samenode" data-id="{{competency.id}}">
29551c4b 44 <div class="card">
cc8348db 45 {{#canmanagetemplatecompetencies}}
54c5a739 46 <span class="drag-handlecontainer pull-left"></span>
207136f2 47 <div class="pull-xs-right">
d04ea166 48 <a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
54c5a739 49 </div>
cc8348db 50 {{/canmanagetemplatecompetencies}}
d04ea166 51 {{#competency}}
1ca0d7c8 52 {{> tool_lp/competency_summary }}
d04ea166 53 {{/competency}}
c3de87f6 54 <strong>{{#str}}linkedcourseslist, tool_lp{{/str}}</strong>
cc8348db 55 {{#hascourses}}
207136f2 56 <ul class="inline list-inline">
cc8348db 57 {{#linkedcourses}}
207136f2 58 <li class="list-inline-item"><a href="{{viewurl}}?id={{id}}">{{{fullname}}} ({{{shortname}}})</a></li>
cc8348db
DW
59 {{/linkedcourses}}
60 </ul>
61 {{/hascourses}}
62 {{^hascourses}}
3f2c68f1 63 <span class="badge badge-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
cc8348db
DW
64 {{/hascourses}}
65 </div>
66 </div>
54c5a739 67 {{/competencies}}
cc8348db
DW
68 </div>
69 </div>
54c5a739 70 {{^competencies}}
beb3441b 71 <p class="alert alert-info">
54c5a739
MN
72 {{#str}}nocompetenciesintemplate, tool_lp{{/str}}
73 </p>
74 {{/competencies}}
75 </div>
de3b9193
FM
76 <div data-region="actions">
77 {{#canmanagecompetencyframeworks}}
78 <div>
79 <p><a href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a></p>
80 </div>
81 {{/canmanagecompetencyframeworks}}
82 </div>
54c5a739
MN
83</div>
84{{#js}}
85require(['tool_lp/competencies'], function(mod) {
f864aa4c 86 (new mod({{template.id}}, 'template', {{pagecontextid}}));
54c5a739
MN
87});
88{{/js}}