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
    Summary.
19
 
20
    Classes required for JS:
21
    * None
22
 
23
    Data attibutes required for JS:
24
    * None
25
 
26
    Context variables required for this template:
27
    * hasplans
28
    * hasactiveplans
29
    * activeplans
30
    * hasmoreplans
31
    * hascompstoreview
32
    * compstoreview
33
    * hasmorecompstoreview
34
    * hasplanstoreview
35
    * planstoreview
36
    * hasmoreplanstoreview
37
}}
38
<div>
39
    {{#hasplans}}
40
        <h3>{{#str}}myplans, block_lp{{/str}}</h3>
41
        <div class="sub-content">
42
            {{#hasactiveplans}}
43
                <ul>
44
                    {{#activeplans}}
45
                        <li><a href="{{url}}">{{{name}}}</a></li>
46
                    {{/activeplans}}
47
                    {{#hasmoreplans}}
48
                        <li class="more"><a href="{{plansurl}}">{{#str}}viewmore, block_lp{{/str}}</a></li>
49
                    {{/hasmoreplans}}
50
                </ul>
51
            {{/hasactiveplans}}
52
            {{^hasactiveplans}}
53
                <p>{{#str}}noactiveplans, block_lp{{/str}} <a href="{{plansurl}}">{{#str}}viewotherplans, block_lp{{/str}}</a></p>
54
            {{/hasactiveplans}}
55
        </div>
56
    {{/hasplans}}
57
    {{#hascompstoreview}}
58
        <h3>{{#str}}competenciestoreview, block_lp{{/str}}</h3>
59
        <div class="sub-content">
60
            <ul>
61
                {{#compstoreview}}
62
                    <li>
63
                        <a href="{{usercompetency.url}}">{{{competency.shortname}}}</a> ({{user.fullname}}) - {{usercompetency.statusname}}
64
                    </li>
65
                {{/compstoreview}}
66
                {{#hasmorecompstoreview}}
67
                    <li class="more"><a href="{{pluginbaseurl}}/competencies_to_review.php">{{#str}}viewmore, block_lp{{/str}}</a></li>
68
                {{/hasmorecompstoreview}}
69
            </ul>
70
        </div>
71
    {{/hascompstoreview}}
72
    {{#hasplanstoreview}}
73
        <h3>{{#str}}planstoreview, block_lp{{/str}}</h3>
74
        <div class="sub-content">
75
            <ul>
76
                {{#planstoreview}}
77
                    <li>
78
                        <a href="{{plan.url}}">{{{plan.name}}}</a> ({{user.fullname}}) - {{plan.statusname}}
79
                    </li>
80
                {{/planstoreview}}
81
                {{#hasmoreplanstoreview}}
82
                    <li class="more"><a href="{{pluginbaseurl}}/plans_to_review.php">{{#str}}viewmore, block_lp{{/str}}</a></li>
83
                {{/hasmoreplanstoreview}}
84
            </ul>
85
        </div>
86
    {{/hasplanstoreview}}
87
</div>