MDL-53452 competencies: Add unit test for course competency settings
[moodle.git] / report / competency / templates / report.mustache
CommitLineData
a8007119 1<div data-region="competency-breakdown-report" data-courseid="{{course.id}}" data-userid="{{user.id}}">
21e0dd61
DW
2<div class="row-fluid">
3<span class="span6">
85a719e4
JP
4 <table class="table table-bordered">
5 <summary class="accesshide">
6 <p>{{#str}}coursecompetencybreakdownsummary, report_competency{{/str}}</p>
7 </summary>
8 <tr>
9 <th scope="col">
10 <span>{{#str}}competency, report_competency{{/str}}</span>
11 </th>
12 <th scope="col">
13 <span>{{#str}}rating, report_competency{{/str}}</span>
14 </th>
15 </tr>
16 {{#usercompetencies}}
17 <tr>
18 {{#competency}}
19 <td>
20 <a href="#" data-action="competency-dialogue" data-id="{{competency.id}}">
21 {{competency.shortname}} <em data-id="{{competency.id}}">{{competency.idnumber}}</em>
22 </a>
23 </td>
24 {{/competency}}
25 {{#usercompetency}}
26 <td class="alert {{#proficiency}}alert-success{{/proficiency}}"
27 data-user-competency="true"
28 data-userid="{{user.id}}"
29 data-competencyid="{{competencyid}}"
30 data-courseid="{{course.id}}">
31 {{> report_competency/user_competency_summary}}
32 </td>
33 {{/usercompetency}}
34 </tr>
35 {{/usercompetencies}}
36 </table>
21e0dd61
DW
37</span>
38</div>
e07c2ef6
DW
39</div>
40{{#js}}
41require(['tool_lp/competencydialogue'], function(Compdialogue) {
42 var competencydialogue = new Compdialogue({includerelated : true});
43 competencydialogue.watch('[data-region="competency-breakdown-report"]');
44});
45require(['report_competency/grading_popup'], function(Popup) {
46 (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
47});
48{{/js}}