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_grades/bulkactions/edit/tree/bulk_move_grade_tree
19
 
20
    Renders the tree of categories and items for the bulk move action.
21
 
22
    Context variables required for this template:
23
    * id - The id of the category.
24
    * name - The name of the category.
25
    * children - An array of child categories.
26
    * iscategory - Whether the item is a category or not.
27
 
28
    Example context (json):
29
    {
30
        "id": 1,
31
        "name": "Category 1",
32
        "children": [
33
            {
34
                "id": 2,
35
                "name": "Category 2",
36
                "children": [
37
                    {
38
                        "id": 3,
39
                        "name": "Category 3",
40
                        "children": [
41
                            {
42
                                "id": 4,
43
                                "name": "Category 4",
44
                                "children": [],
45
                                "iscategory": true
46
                            }
47
                        ],
48
                        "iscategory": true
49
                    }
50
                ],
51
                "iscategory": true
52
            }
53
        ],
54
        "iscategory": true
55
    }
56
}}
57
<p data-for="sectionname">{{#str}} moveselectedto, grades {{/str}}</p>
58
<nav class="collapse-list" id="destination-selector">
59
    <ul class="unlist p-0" role="tree">
60
        {{#iscategory}}
61
            {{> core_grades/bulkactions/edit/tree/bulk_move_category_item }}
62
        {{/iscategory}}
63
    </ul>
64
</nav>