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 tool_lp/competency_summary
19
 
20
    Summary of a competency
21
 
22
    Context variables required for this template:
23
    * competency
24
      * id
25
      * shortname
26
      * idnumber
27
      * description
28
    * framework
29
      * shortname
30
    * comppath array of ancestors
31
    * showrelatedcompetencies boolean
32
    * related
33
    * showrule boolean
34
    * rule
35
      * outcome
36
      * type
37
 
38
    Example context (json):
39
    {
40
        "competency": {
41
            "id": 1,
42
            "shortname": "C1",
43
            "idnumber": "PATH",
44
            "description": "Can do something"
45
        },
46
        "framework": {
47
            "shortname": "F1"
48
        }
49
    }
50
}}
51
<div class='competency-heading'>
52
    <div id="competency_link_{{competency.id}}" class="mt-2 d-block">
53
 
54
        <div class="d-inline-flex align-items-center">
55
            <h5 class="mb-0">{{{competency.shortname}}}</h5>
56
            {{#showlinks}}
57
                <a href="{{pluginbaseurl}}/competencies.php?competencyid={{competency.id}}"><span class="badge badge-info ml-2">{{competency.idnumber}}</span></a>
58
            {{/showlinks}}
59
            {{^showlinks}}
60
                <span class="badge badge-sq badge-xs badge-light ml-2">{{competency.idnumber}}</span>
61
            {{/showlinks}}
62
        </div>
63
    </div>
64
    {{#framework}}
65
        <div class="competency-origin mt-3 pt-3 border-top">
66
            <div class="d-inline-flex align-items-center">
67
                <h3 class="mb-0">{{{framework.shortname}}}</h3>
68
                <span class="badge badge-info ml-2">{{taxonomyterm}}</span>
69
            </div>
70
        </div>
71
    {{/framework}}
72
</div>
73
 
74
{{#competency.description}}
75
<p>{{{competency.description}}}</p>
76
{{/competency.description}}
77
 
78
{{#comppath}}
79
<hr />
80
    <span class="float-left">{{#str}}path, tool_lp{{/str}}&nbsp;</span>{{> tool_lp/competency_path }}
81
{{/comppath}}
82
{{#showrelatedcompetencies}}
83
    {{> tool_lp/related_competencies }}
84
{{/showrelatedcompetencies}}
85
 
86
{{#showrule}}
87
    <h5>{{#str}}competencyrule, tool_lp{{/str}}</h5>
88
    <dl>
89
        <dt>{{#str}}outcome, tool_lp{{/str}}</dt>
90
        <dd>{{rule.outcome}}</dd>
91
        <dt>{{#str}}when, tool_lp{{/str}}</dt>
92
        <dd>{{rule.type}}</dd>
93
    </dl>
94
{{/showrule}}
95