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