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 class="my-2" data-region="configurecoursecompetencies">
26
{{#pushratingstouserplans}}
27
    <div class="wrapper-fw">
28
        <div class="alert alert-light d-inline-flex align-items-center">
29
            <span class="mr-3">
30
                <svg width="24" height="24" fill="none" viewBox="0 0 24 24">
31
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.25 4.75L8.75 7L11.25 9.25"></path>
32
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.75 19.25L15.25 17L12.75 14.75"></path>
33
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.75 7H13.25C16.5637 7 19.25 9.68629 19.25 13V13.25"></path>
34
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.25 17H10.75C7.43629 17 4.75 14.3137 4.75 11V10.75"></path>
35
                </svg>
36
            </span>
37
            {{#str}}coursecompetencyratingsarepushedtouserplans, tool_lp{{/str}}
38
        </div>
39
    </div>
40
{{/pushratingstouserplans}}
41
{{^pushratingstouserplans}}
42
    <div class="wrapper-fw">
43
        <div class="alert alert-light d-inline-flex align-items-center">
44
            <span class="mr-3">
45
                <svg width="24" height="24" fill="none" viewBox="0 0 24 24">
46
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 13V15"></path>
47
                    <circle cx="12" cy="9" r="1" fill="currentColor"></circle>
48
                    <circle cx="12" cy="12" r="7.25" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></circle>
49
                </svg>
50
            </span>
51
            {{#str}}coursecompetencyratingsarenotpushedtouserplans, tool_lp{{/str}}
52
        </div>
53
    </div>
54
{{/pushratingstouserplans}}
55
</div>
56
<div class="row">
57
<span class="col-md-12">
58
    <table class="generaltable">
59
        <summary class="accesshide">
60
            <p>{{#str}}coursecompetencybreakdownsummary, report_competency{{/str}}</p>
61
        </summary>
62
        <tr>
63
            <th scope="col">
64
                <span>{{#str}}competency, report_competency{{/str}}</span>
65
            </th>
66
            <th scope="col">
67
                <span>{{#str}}rating, report_competency{{/str}}</span>
68
            </th>
69
        </tr>
70
        {{#usercompetencies}}
71
        <tr>
72
            {{#competency}}
73
            <td>
74
                <a href="#" data-action="competency-dialogue" data-id="{{competency.id}}">
75
                    {{{competency.shortname}}} <em data-id="{{competency.id}}">{{competency.idnumber}}</em>
76
                </a>
77
            </td>
78
            {{/competency}}
79
            {{#usercompetencycourse}}
80
            <td data-user-competency="true"
81
                data-userid="{{user.id}}"
82
                data-competencyid="{{competencyid}}"
83
                data-courseid="{{course.id}}">
84
                <span class="badge badge-link {{#proficiency}}badge-success{{/proficiency}}"">
85
                    {{#proficiency}}<span class="mr-2"><svg width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.75 12C4.75 7.99594 7.99594 4.75 12 4.75V4.75C16.0041 4.75 19.25 7.99594 19.25 12V12C19.25 16.0041 16.0041 19.25 12 19.25V19.25C7.99594 19.25 4.75 16.0041 4.75 12V12Z"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.75 12.75L10.1837 13.6744C10.5275 14.407 11.5536 14.4492 11.9564 13.7473L14.25 9.75"></path></svg></span>{{/proficiency}}
86
                    {{> report_competency/user_competency_summary}}
87
                </span>
88
            </td>
89
            {{/usercompetencycourse}}
90
        </tr>
91
        {{/usercompetencies}}
92
    </table>
93
</span>
94
</div>
95
</div>
96
{{#js}}
97
require(['tool_lp/competencydialogue'], function(Compdialogue) {
98
    Compdialogue.init();
99
});
100
require(['report_competency/grading_popup'], function(Popup) {
101
    (new Popup('[data-region=competency-breakdown-report]', '[data-user-competency=true]'));
102
});
103
{{/js}}