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 core_courseformat/local/content/section/cmlist
19
 
20
    Displays the course module list inside a course section.
21
 
22
    Example context (json):
23
    {
24
        "cms": [
25
            {
26
                "cmitem": {
27
                    "cmformat": {
28
                        "cmname": "<a class=\"aalink\" href=\"#\"><span class=\"instancename\">Forum example</span></a>",
29
                        "hasname": "true"
30
                    },
31
                    "id": 3,
32
                    "module": "forum",
33
                    "extraclasses": "newmessages"
34
                }
35
            },
36
            {
37
                "cmitem": {
38
                    "cmformat": {
39
                        "cmname": "<a class=\"aalink\" href=\"#\"><span class=\"instancename\">Assign example</span></a>",
40
                        "hasname": "true"
41
                    },
42
                    "id": 4,
43
                    "module": "assign",
44
                    "extraclasses": ""
45
                }
46
            }
47
        ],
48
        "hascms": true,
49
        "showmovehere": true,
50
        "movingstr": "Moving this activity: folder example",
51
        "cancelcopyurl": "#",
52
        "movetosectionurl": "#",
53
        "strmovefull": "Move 'folder example' to this location"
54
    }
55
}}
56
{{#showmovehere}}
57
<p>{{movingstr}} (<a href="{{{cancelcopyurl}}}">{{#str}} cancel {{/str}}</a>)</p>
58
{{/showmovehere}}
59
<ul class="rui-section section img-text {{#hascms}} d-block {{/hascms}}" data-for="cmlist">
60
{{#cms}}
61
    {{#showmovehere}}
62
    <li class="movehere">
63
        <a href="{{{moveurl}}}" title="{{strmovefull}}" class="movehere"></a>
64
    </li>
65
    {{/showmovehere}}
66
    {{#cmitem}}
67
        {{$ core_courseformat/local/content/section/cmitem}}
68
            {{> core_courseformat/local/content/section/cmitem}}
69
        {{/ core_courseformat/local/content/section/cmitem}}
70
    {{/cmitem}}
71
{{/cms}}
72
{{#showmovehere}}
73
    <li class="movehere">
74
        <a href="{{{movetosectionurl}}}" title="{{strmovefull}}" class="movehere"></a>
75
    </li>
76
{{/showmovehere}}
77
    </ul>