Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
{{!
2
    This file is part of Moodle - http://moodle.org/
3
 
4
    Moodle is free software: you can redistribute it and/or modify
5
    it under the terms of the GNU General Public License as published by
6
    the Free Software Foundation, either version 3 of the License, or
7
    (at your option) any later version.
8
 
9
    Moodle is distributed in the hope that it will be useful,
10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
    GNU General Public License for more details.
13
 
14
    You should have received a copy of the GNU General Public License
15
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
}}
17
{{!
18
    @template report_competency/report
19
 
20
    Moodle template competency breakdown report.
21
 
22
    This template includes ajax functionality, so it cannot be shown in the template library.
23
}}
24
<div data-region="competency-breakdown-report" data-courseid="{{course.id}}" data-userid="{{user.id}}" data-moduleid="{{moduleid}}">
25
<div data-region="configurecoursecompetencies">
26
{{#pushratingstouserplans}}
27
    <p class="alert">
28
    {{#str}}coursecompetencyratingsarepushedtouserplans, tool_lp{{/str}}
29
    </p>
30
{{/pushratingstouserplans}}
31
{{^pushratingstouserplans}}
32
    <p class="alert alert-info">
33
    {{#str}}coursecompetencyratingsarenotpushedtouserplans, tool_lp{{/str}}
34
    </p>
35
{{/pushratingstouserplans}}
36
</div>
37
<div class="row">
38
<span class="col-md-6">
39
    <table class="table table-bordered">
40
        <summary class="accesshide">
41
            <p>{{#str}}coursecompetencybreakdownsummary, report_competency{{/str}}</p>
42
        </summary>
43
        <tr>
44
            <th scope="col">
45
                <span>{{#str}}competency, report_competency{{/str}}</span>
46
            </th>
47
            <th scope="col">
48
                <span>{{#str}}rating, report_competency{{/str}}</span>
49
            </th>
50
        </tr>
51
        {{#usercompetencies}}
52
        <tr>
53
            {{#competency}}
54
            <td>
55
                <a href="#" data-action="competency-dialogue" data-id="{{competency.id}}">
56
                    {{{competency.shortname}}} <em data-id="{{competency.id}}">{{competency.idnumber}}</em>
57
                </a>
58
            </td>
59
            {{/competency}}
60
            {{#usercompetencycourse}}
61
            <td class="alert {{#proficiency}}alert-success{{/proficiency}}"
62
                data-user-competency="true"
63
                data-userid="{{user.id}}"
64
                data-competencyid="{{competencyid}}"
65
                data-courseid="{{course.id}}">
66
                {{> report_competency/user_competency_summary}}
67
            </td>
68
            {{/usercompetencycourse}}
69
        </tr>
70
        {{/usercompetencies}}
71
    </table>
72
</span>
73
</div>
74
</div>
75
{{#js}}
76
require(['tool_lp/competencydialogue'], function(Compdialogue) {
77
    Compdialogue.init();
78
});
79
require(['report_competency/grading_popup'], function(Popup) {
80
    (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
81
});
82
{{/js}}