| 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/settings_link_page
|
|
|
19 |
|
|
|
20 |
Displays the admin tree as a list of grouped links.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"node": {
|
|
|
25 |
"text": "Root of menu",
|
|
|
26 |
"key": "test0",
|
|
|
27 |
"display": true,
|
|
|
28 |
"children": [
|
|
|
29 |
{
|
|
|
30 |
"text": "Child of menu",
|
|
|
31 |
"key": "test1",
|
|
|
32 |
"display": true,
|
|
|
33 |
"children": []
|
|
|
34 |
}
|
|
|
35 |
]
|
|
|
36 |
}
|
|
|
37 |
}
|
|
|
38 |
}}
|
|
|
39 |
<div class="d-md-inline-flex w-100">
|
|
|
40 |
|
|
|
41 |
<div class="col tab-content px-0">
|
|
|
42 |
<div class="tab-pane active" id="link{{node.key}}" role="tabpanel">
|
|
|
43 |
<div class="rui-settings-container px-0 mx-0">
|
|
|
44 |
<div class="row">
|
|
|
45 |
<div class="col-sm-12 col-md-3 pt-5">
|
|
|
46 |
</div>
|
|
|
47 |
<div class="col">
|
|
|
48 |
<ul class="list-unstyled rui-list-admin-links">
|
|
|
49 |
{{#node.children}}
|
|
|
50 |
{{^children.count}}
|
|
|
51 |
{{#display}}
|
|
|
52 |
<li><a href="{{{action}}}">{{text}}</a></li>
|
|
|
53 |
{{/display}}
|
|
|
54 |
{{/children.count}}
|
|
|
55 |
{{/node.children}}
|
|
|
56 |
</ul>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
|
|
|
60 |
{{#node.children}}
|
|
|
61 |
{{#display}}
|
|
|
62 |
{{#children.count}}
|
|
|
63 |
{{#is_short_branch}}
|
|
|
64 |
<hr>
|
|
|
65 |
<div class="row">
|
|
|
66 |
<div class="col-sm-12 col-md-3">
|
|
|
67 |
{{#action}}<h4><a class="lead-4 text-primary underline--anim" href="{{action}}">{{text}}</a></h4>{{/action}}
|
|
|
68 |
{{^action}}<h4 class="lead-4">{{text}}</h4>{{/action}}
|
|
|
69 |
</div>
|
|
|
70 |
<div class="col">
|
|
|
71 |
<ul class="list-unstyled rui-list-admin-links">
|
|
|
72 |
{{#children}}
|
|
|
73 |
{{> core/settings_link_page_single }}
|
|
|
74 |
{{/children}}
|
|
|
75 |
</ul>
|
|
|
76 |
</div>
|
|
|
77 |
</div>
|
|
|
78 |
{{/is_short_branch}}
|
|
|
79 |
{{/children.count}}
|
|
|
80 |
{{/display}}
|
|
|
81 |
{{/node.children}}
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
|
|
84 |
{{#node.children}}
|
|
|
85 |
{{#children.count}}
|
|
|
86 |
<div class="tab-pane" id="link{{key}}" role="tabpanel">
|
|
|
87 |
<div class="rui-settings-container mx-0 px-0">
|
|
|
88 |
<div class="row">
|
|
|
89 |
<div class="col-sm-12 col-md-3 mt-1">
|
|
|
90 |
{{#action}}<h4><a class="lead-4 text-primary underline--anim" href="{{action}}">{{text}}</a></h4>{{/action}}
|
|
|
91 |
{{^action}}<h4 class="lead-4">{{text}}</h4>{{/action}}
|
|
|
92 |
</div>
|
|
|
93 |
<div class="col-sm-12 col-md-9">
|
|
|
94 |
<ul class="list-unstyled rui-list-admin-links">
|
|
|
95 |
{{#children}}
|
|
|
96 |
{{#display}}
|
|
|
97 |
{{^children.count}}
|
|
|
98 |
<li><a href="{{{action}}}">{{text}}</a></li>
|
|
|
99 |
{{/children.count}}
|
|
|
100 |
{{/display}}
|
|
|
101 |
{{/children}}
|
|
|
102 |
</ul>
|
|
|
103 |
</div>
|
|
|
104 |
</div>
|
|
|
105 |
{{#children}}
|
|
|
106 |
{{#display}}
|
|
|
107 |
{{#children.count}}
|
|
|
108 |
<hr>
|
|
|
109 |
<div class="row">
|
|
|
110 |
<div class="col-sm-12 col-md-3 mt-1">
|
|
|
111 |
{{#action}}<h4><a class="lead-4 text-primary underline--anim" href="{{action}}">{{text}}</a></h4>{{/action}}
|
|
|
112 |
{{^action}}<h4 class="lead-4">{{text}}</h4>{{/action}}
|
|
|
113 |
</div>
|
|
|
114 |
<div class="col-sm-12 col-md-9">
|
|
|
115 |
<ul class="list-unstyled rui-list-admin-links">
|
|
|
116 |
{{#children}}
|
|
|
117 |
{{> core/settings_link_page_single }}
|
|
|
118 |
{{/children}}
|
|
|
119 |
</ul>
|
|
|
120 |
</div>
|
|
|
121 |
</div>
|
|
|
122 |
{{/children.count}}
|
|
|
123 |
{{/display}}
|
|
|
124 |
{{/children}}
|
|
|
125 |
</div>
|
|
|
126 |
</div>
|
|
|
127 |
{{/children.count}}
|
|
|
128 |
{{/node.children}}
|
|
|
129 |
</div>
|
|
|
130 |
</div>
|