mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
73 lines
3.1 KiB
Text
73 lines
3.1 KiB
Text
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
Template competencies template.
|
|
}}
|
|
<div data-region="templatecompetenciespage">
|
|
<div data-region="templatecompetencies">
|
|
<div class="managecompetencies">
|
|
<div class="drag-parentnode">
|
|
{{#competencies}}
|
|
<div class="drag-samenode" data-id="{{competency.id}}">
|
|
<div class="well">
|
|
{{#canmanagetemplatecompetencies}}
|
|
<span class="drag-handlecontainer pull-left"></span>
|
|
<div class="pull-right">
|
|
<a href="#" data-action="delete-competency-link" data-id="{{competency.id}}">{{#pix}}t/delete, core, {{#str}}delete{{/str}}{{/pix}}</a>
|
|
</div>
|
|
{{/canmanagetemplatecompetencies}}
|
|
{{#competency}}
|
|
{{> tool_lp/competency_summary }}
|
|
{{/competency}}
|
|
<strong>{{#str}}linkedcourses, tool_lp{{/str}}</strong>
|
|
{{#hascourses}}
|
|
<ul class="inline">
|
|
{{#linkedcourses}}
|
|
<li><a href="{{viewurl}}?id={{id}}">{{fullname}} ({{shortname}})</a></li>
|
|
{{/linkedcourses}}
|
|
</ul>
|
|
{{/hascourses}}
|
|
{{^hascourses}}
|
|
<span class="label label-info">{{#str}}nolinkedcourses, tool_lp{{/str}}</span>
|
|
{{/hascourses}}
|
|
</div>
|
|
</div>
|
|
{{/competencies}}
|
|
</div>
|
|
</div>
|
|
{{^competencies}}
|
|
<p class="alert-info">
|
|
{{#str}}nocompetenciesintemplate, tool_lp{{/str}}
|
|
</p>
|
|
{{/competencies}}
|
|
</div>
|
|
<div data-region="actions">
|
|
<div class="pull-right">
|
|
{{#canmanagetemplatecompetencies}}
|
|
<button style="display: none">{{#str}}linktemplatecompetencies, tool_lp{{/str}}</button>
|
|
{{/canmanagetemplatecompetencies}}
|
|
</div>
|
|
{{#canmanagecompetencyframeworks}}
|
|
<p><a href="{{manageurl}}">{{#str}}managecompetenciesandframeworks, tool_lp{{/str}}</a></p>
|
|
{{/canmanagecompetencyframeworks}}
|
|
</div>
|
|
</div>
|
|
{{#js}}
|
|
require(['tool_lp/competencies'], function(mod) {
|
|
(new mod({{templateid}}, 'template', {{pagecontextid}}));
|
|
});
|
|
{{/js}}
|