1 |
efrain |
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 |
<h2>
|
|
|
22 |
{{{template.shortname}}}
|
|
|
23 |
{{#template.canmanage}}
|
|
|
24 |
<a class="btn btn-sm btn-link" href="{{pluginbaseurl}}/edittemplate.php?id={{template.id}}&pagecontextid={{pagecontextid}}">{{#pix}}t/edit, core, {{#str}}edittemplate, tool_lp{{/str}}{{/pix}}</a>
|
|
|
25 |
{{/template.canmanage}}
|
|
|
26 |
</h2>
|
|
|
27 |
<div>{{{template.description}}}</div>
|
|
|
28 |
{{#canmanagetemplatecompetencies}}
|
|
|
29 |
<div data-region="actions" class="my-3">
|
|
|
30 |
<button disabled class="btn btn-primary">{{#str}}addtemplatecompetencies, tool_lp{{/str}}</button>
|
|
|
31 |
</div>
|
|
|
32 |
{{/canmanagetemplatecompetencies}}
|
|
|
33 |
<h3 class="mt-1">{{#str}}templatecompetencies, tool_lp{{/str}}</h3>
|
|
|
34 |
{{#statistics}}
|
|
|
35 |
{{> tool_lp/template_statistics }}
|
|
|
36 |
{{/statistics}}
|
|
|
37 |
<div data-region="templatecompetencies">
|
|
|
38 |
<div class="managecompetencies">
|
|
|
39 |
<div class="drag-parentnode">
|
|
|
40 |
{{#competencies}}
|
|
|
41 |
<div class="drag-samenode" data-id="{{competency.id}}">
|
|
|
42 |
<div class="rui-competencies-box">
|
|
|
43 |
{{#canmanagetemplatecompetencies}}
|
|
|
44 |
<span class="drag-handlecontainer float-left"></span>
|
|
|
45 |
<div class="float-sm-right">
|
|
|
46 |
<a href="#" class="btn btn-icon btn-danger" data-action="delete-competency-link" data-id="{{competency.id}}">
|
|
|
47 |
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
48 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 7.75L7.59115 17.4233C7.68102 18.4568 8.54622 19.25 9.58363 19.25H14.4164C15.4538 19.25 16.319 18.4568 16.4088 17.4233L17.25 7.75"></path>
|
|
|
49 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.75 7.5V6.75C9.75 5.64543 10.6454 4.75 11.75 4.75H12.25C13.3546 4.75 14.25 5.64543 14.25 6.75V7.5"></path>
|
|
|
50 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 7.75H19"></path>
|
|
|
51 |
</svg>
|
|
|
52 |
</a>
|
|
|
53 |
</div>
|
|
|
54 |
{{/canmanagetemplatecompetencies}}
|
|
|
55 |
{{#competency}}
|
|
|
56 |
{{> tool_lp/competency_summary }}
|
|
|
57 |
{{/competency}}
|
|
|
58 |
<strong>{{#str}}linkedcourseslist, tool_lp{{/str}}</strong>
|
|
|
59 |
{{#hascourses}}
|
|
|
60 |
<ul class="inline list-inline mt-3 mb-0">
|
|
|
61 |
{{#linkedcourses}}
|
|
|
62 |
<li class="list-inline-item"><a href="{{viewurl}}?id={{id}}">{{{fullname}}} ({{{shortname}}})</a></li>
|
|
|
63 |
{{/linkedcourses}}
|
|
|
64 |
</ul>
|
|
|
65 |
{{/hascourses}}
|
|
|
66 |
{{^hascourses}}
|
|
|
67 |
<span class="badge badge-warning mt-3">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
|
|
|
68 |
{{/hascourses}}
|
|
|
69 |
</div>
|
|
|
70 |
</div>
|
|
|
71 |
{{/competencies}}
|
|
|
72 |
</div>
|
|
|
73 |
</div>
|
|
|
74 |
{{^competencies}}
|
|
|
75 |
<div class="mt-3 alert alert-warning d-inline-flex align-items-center">
|
|
|
76 |
<span class="mr-2">
|
|
|
77 |
<svg width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
|
78 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.9522 16.3536L10.2152 5.85658C10.9531 4.38481 13.0539 4.3852 13.7913 5.85723L19.0495 16.3543C19.7156 17.6841 18.7487 19.25 17.2613 19.25H6.74007C5.25234 19.25 4.2854 17.6835 4.9522 16.3536Z"></path>
|
|
|
79 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10V12"></path>
|
|
|
80 |
<circle cx="12" cy="16" r="1" fill="currentColor"></circle>
|
|
|
81 |
</svg>
|
|
|
82 |
</span>
|
|
|
83 |
{{#str}}nocompetenciesintemplate, tool_lp{{/str}}
|
|
|
84 |
</div>
|
|
|
85 |
{{/competencies}}
|
|
|
86 |
</div>
|
|
|
87 |
<div data-region="actions">
|
|
|
88 |
{{#canmanagecompetencyframeworks}}
|
|
|
89 |
<hr class="hr" />
|
|
|
90 |
<div>
|
|
|
91 |
<a class="btn btn-sm btn-secondary" href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a>
|
|
|
92 |
</div>
|
|
|
93 |
{{/canmanagecompetencyframeworks}}
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
{{#js}}
|
|
|
97 |
require(['tool_lp/competencies'], function(mod) {
|
|
|
98 |
(new mod({{template.id}}, 'template', {{pagecontextid}}));
|
|
|
99 |
});
|
|
|
100 |
{{/js}}
|