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_dataprivacy/context_tree_branch
19
 
20
    A tree branch.
21
 
22
    Classes required for JS:
23
 
24
    Data attributes required for JS:
25
 
26
    Context variables required for this template:
27
 
28
    Example context (json):
29
    {
30
    }
31
 
32
}}
33
 
34
 
35
<a class="list-group-item list-group-item-action {{#active}}active{{/active}}" href="#" data-context-tree-node="1"
36
        {{#contextlevel}} data-contextlevel="{{.}}" {{/contextlevel}}
37
        {{#contextid}} data-contextid="{{.}}" {{/contextid}}
38
        {{#expandcontextid}} data-expandcontextid="{{.}}" {{/expandcontextid}}
39
        {{#expandelement}} data-expandelement="{{.}}" {{/expandelement}}
40
        data-expanded="{{expanded}}">
41
 
42
        {{#expandelement}}{{#expanded}}
43
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
44
            <path d="M12 9.75L16.25 15.25H7.75L12 9.75Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
45
        </svg>
46
        {{/expanded}}{{/expandelement}}
47
 
48
        {{#expandelement}}{{^expanded}}
49
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
50
            <path d="M12 15.25L16.25 9.75H7.75L12 15.25Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
51
        </svg>
52
        {{/expanded}}{{/expandelement}}
53
 
54
        {{^expandelement}}{{#expanded}}
55
        <svg width="24" height="24" fill="none" viewBox="0 0 24 24">
56
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 17.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75H4.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25Z"></path>
57
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.5 7.5L12.5685 5.7923C12.2181 5.14977 11.5446 4.75 10.8127 4.75H6.75C5.64543 4.75 4.75 5.64543 4.75 6.75V11"></path>
58
        </svg>
59
        {{/expanded}}{{/expandelement}}
60
 
61
        {{^expandelement}}{{^expanded}}
62
        <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
63
            <path d="M12.75 4.75H7.75C6.64543 4.75 5.75 5.64543 5.75 6.75V17.25C5.75 18.3546 6.64543 19.25 7.75 19.25H16.25C17.3546 19.25 18.25 18.3546 18.25 17.25V10.25M12.75 4.75V8.25C12.75 9.35457 13.6454 10.25 14.75 10.25H18.25M12.75 4.75L18.25 10.25" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
64
        </svg>
65
        {{/expanded}}{{/expandelement}}
66
 
67
        <span class="ml-2">{{text}}</span>
68
</a>
69
{{> tool_dataprivacy/context_tree_branches}}