2 This file is part of Moodle - http://moodle.org/
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.
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.
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/>.
18 @template core/settings_link_page
20 Displays the admin tree as a list of grouped links.
22 Example context (json):
25 "text": "Root of menu",
30 "text": "Child of menu",
40 <ul class="nav nav-tabs" role="tablist">
41 <!-- First the top most node and immediate children -->
43 <a class="nav-link active" href="#link{{node.key}}" data-toggle="tab" role="tab">{{node.text}}</a>
45 <!-- Now the first level children with sub nodes -->
51 <a class="nav-link" href="#link{{key}}" data-toggle="tab" role="tab">{{text}}</a>
59 <div class="tab-content mt-3">
60 <div class="tab-pane active" id="link{{node.key}}" role="tabpanel">
61 <div class="container">
63 <div class="col-sm-3">
66 <ul class="list-unstyled">
70 <li><a href="{{{action}}}">{{text}}</a></li>
84 <div class="col-sm-3">
85 {{#action}}<h4><a href="{{action}}">{{text}}</a><h4>{{/action}}
86 {{^action}}<h4>{{text}}<h4>{{/action}}
89 <ul class="list-unstyled">
91 {{> core/settings_link_page_single }}
104 <div class="tab-pane" id="link{{key}}" role="tabpanel">
105 <div class="container">
107 <div class="col-sm-3">
108 {{#action}}<h4><a href="{{action}}">{{text}}</a><h4>{{/action}}
109 {{^action}}<h4>{{text}}<h4>{{/action}}
111 <div class="col-sm-9">
112 <ul class="list-unstyled">
116 <li><a href="{{{action}}}">{{text}}</a></li>
128 <div class="col-sm-3">
129 {{#action}}<h4><a href="{{action}}">{{text}}</a><h4>{{/action}}
130 {{^action}}<h4>{{text}}<h4>{{/action}}
132 <div class="col-sm-9">
133 <ul class="list-unstyled">
135 {{> core/settings_link_page_single }}