MDL-53655 tool_lp: Allow closures in default values of persistents
[moodle.git] / report / competency / templates / report.mustache
CommitLineData
2f411bca 1<div data-region="competency-breakdown-report" data-courseid="{{course.id}}" data-userid="{{user.id}}">
c2f55d29
DW
2<div data-region="configurecoursecompetencies">
3{{#pushratingstouserplans}}
4 <p class="alert">
5 {{#str}}coursecompetencyratingsarepushedtouserplans, tool_lp{{/str}}
6 </p>
7{{/pushratingstouserplans}}
8{{^pushratingstouserplans}}
9 <p class="alert alert-info">
10 {{#str}}coursecompetencyratingsarenotpushedtouserplans, tool_lp{{/str}}
11 </p>
12{{/pushratingstouserplans}}
13</div>
21e0dd61
DW
14<div class="row-fluid">
15<span class="span6">
85a719e4
JP
16 <table class="table table-bordered">
17 <summary class="accesshide">
18 <p>{{#str}}coursecompetencybreakdownsummary, report_competency{{/str}}</p>
19 </summary>
20 <tr>
21 <th scope="col">
22 <span>{{#str}}competency, report_competency{{/str}}</span>
23 </th>
24 <th scope="col">
25 <span>{{#str}}rating, report_competency{{/str}}</span>
26 </th>
27 </tr>
28 {{#usercompetencies}}
29 <tr>
30 {{#competency}}
31 <td>
32 <a href="#" data-action="competency-dialogue" data-id="{{competency.id}}">
33 {{competency.shortname}} <em data-id="{{competency.id}}">{{competency.idnumber}}</em>
34 </a>
35 </td>
36 {{/competency}}
37 {{#usercompetency}}
38 <td class="alert {{#proficiency}}alert-success{{/proficiency}}"
39 data-user-competency="true"
40 data-userid="{{user.id}}"
41 data-competencyid="{{competencyid}}"
42 data-courseid="{{course.id}}">
43 {{> report_competency/user_competency_summary}}
44 </td>
45 {{/usercompetency}}
46 </tr>
47 {{/usercompetencies}}
48 </table>
21e0dd61
DW
49</span>
50</div>
e07c2ef6
DW
51</div>
52{{#js}}
53require(['tool_lp/competencydialogue'], function(Compdialogue) {
54 var competencydialogue = new Compdialogue({includerelated : true});
55 competencydialogue.watch('[data-region="competency-breakdown-report"]');
56});
57require(['report_competency/grading_popup'], function(Popup) {
58 (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
59});
60{{/js}}