MDL-52803 tool_lp: Save real estate by conditionally displaying comments
[moodle.git] / report / competency / templates / report.mustache
CommitLineData
e07c2ef6 1<div data-region="competency-breakdown-report" data-courseid="{{course.id}}" data-groupid="{{groupid}}" data-onlyactive="{{onlyactive}}">
bf780fbf 2<table class="table table-bordered">
e07c2ef6 3<summary>{{#str}}coursecompetencybreakdownsummary, report_competency{{/str}}</summary>
bf780fbf 4<tr>
e07c2ef6 5<th scope="col"><span class="accesshide">{{#str}}students{{/str}}</span></th>
bf780fbf
DW
6{{#competencies}}
7 <th scope="col">
e07c2ef6
DW
8 <a href="#" data-action="competency-dialogue" data-id="{{id}}">
9 {{shortname}} - {{idnumber}}
10 </a>
bf780fbf
DW
11 </th>
12{{/competencies}}
13</tr>
14{{#usercompetencies}}
15<tr>
16<th scope="row">
17{{#user}}
e07c2ef6 18{{> tool_lp/user_summary }}
bf780fbf
DW
19{{/user}}
20</th>
21{{#usercompetencies}}
e07c2ef6
DW
22<td class="alert {{#proficiency}}alert-success{{/proficiency}}"
23 data-user-competency="true"
24 data-userid="{{user.id}}"
25 data-competencyid="{{competencyid}}"
26 data-courseid="{{course.id}}">
bf780fbf
DW
27{{> report_competency/user_competency_summary}}
28</td>
29{{/usercompetencies}}
30</tr>
31{{/usercompetencies}}
32</table>
e07c2ef6
DW
33</div>
34{{#js}}
35require(['tool_lp/competencydialogue'], function(Compdialogue) {
36 var competencydialogue = new Compdialogue({includerelated : true});
37 competencydialogue.watch('[data-region="competency-breakdown-report"]');
38});
39require(['report_competency/grading_popup'], function(Popup) {
40 (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
41});
42{{/js}}