MDL-64506 templates: replace spans where and col-x appears
[moodle.git] / report / competency / templates / report.mustache
1 <div data-region="competency-breakdown-report" data-courseid="{{course.id}}" data-userid="{{user.id}}">
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>
14 <div class="row-fluid">
15 <span class="col-md-6">
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             {{#usercompetencycourse}}
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             {{/usercompetencycourse}}
46         </tr>
47         {{/usercompetencies}}
48     </table>
49 </span>
50 </div>
51 </div>
52 {{#js}}
53 require(['tool_lp/competencydialogue'], function(Compdialogue) {
54     Compdialogue.init();
55 });
56 require(['report_competency/grading_popup'], function(Popup) {
57     (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
58 });
59 {{/js}}