MDL-65978 blog: Fix removing associations
[moodle.git] / course / templates / manage_category_actionbar.mustache
blob15bb73a5343a7593a3e92318a8682db38b55aef7
1 {{!
2     This file is part of Moodle - http://moodle.org/
3     Moodle is free software: you can redistribute it and/or modify
4     it under the terms of the GNU General Public License as published by
5     the Free Software Foundation, either version 3 of the License, or
6     (at your option) any later version.
7     Moodle is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10     GNU General Public License for more details.
11     You should have received a copy of the GNU General Public License
12     along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
14 {{!
15     @template core_course/manage_category_actionbar
17     Displays the tertiary nav for the category page
19     Context variables required for this template:
20     * urlselect Object - The content to be rendered within the url_select
21     * renderedcontent String - Any additional content/actions to be displayed inline with the select box
23     Example context (json):
24     {
25         "urlselect" : {
26             "formid": "url_select_f61834256d7754158",
27             "classes": "urlselect",
28             "label": "",
29             "disabled": false,
30             "title":null,
31             "id":"url_select61834256d7754159",
32             "sesskey":"LWILINyZMH",
33             "action":"http:\/\/localhost\/stable_master\/course\/jumpto.php",
34             "showbutton":null,
35             "options": [
36                 {
37                     "name":"Course and categories",
38                     "value":"\/course\/index.php\/?categoryid=279"
39                 },
40                 {
41                     "name":"Courses",
42                     "value":"\/course\/index.php\/?categoryid=280"
43                 },
44                 {
45                     "name":"Categories",
46                     "value":"\/course\/index.php\/?categoryid=281"
47                 }
48             ],
49             "labelattributes":[],
50             "helpicon":false,
51             "attributes":[]
52         },
53         "categoryselect" : {
54             "formid": "url_select_f61834256d7754158",
55             "classes": "urlselect",
56             "label": "",
57             "disabled": false,
58             "title":null,
59             "id":"url_select61834256d7754159",
60             "sesskey":"LWILINyZMH",
61             "action":"http:\/\/localhost\/stable_master\/course\/jumpto.php",
62             "showbutton":null,
63             "options": [
64                 {
65                     "name":"Category 1",
66                     "value":"\/course\/index.php\/?categoryid=279"
67                 },
68                 {
69                     "name":"Category 2",
70                     "value":"\/course\/index.php\/?categoryid=280"
71                 },
72                 {
73                     "name":"Category 3",
74                     "value":"\/course\/index.php\/?categoryid=281"
75                 }
76             ],
77             "labelattributes":[],
78             "helpicon":false,
79             "attributes":[]
80         },
81         "search": {
82             "action": "https://moodle.local/admin/search.php",
83             "extraclasses": "my-2",
84             "inputname": "search",
85             "inform": false,
86             "searchstring": "Search settings",
87             "value": "policy",
88             "btnclass": "primary",
89             "query": "themedesigner",
90             "hiddenfields": [
91                 {
92                     "name": "context",
93                     "value": "11"
94                 }
95             ]
96         },
97         "heading": "Heading of page"
98     }
100 <div class="container-fluid tertiary-navigation" id="action_bar">
101     <div class="row">
102         {{#urlselect}}
103             <div class="navitem">
104                 {{> core/url_select }}
105             </div>
106         {{/urlselect}}
107         {{#categoryselect}}
108             <div class="navitem">
109                 {{> core/url_select }}
110             </div>
111         {{/categoryselect}}
112         {{#search}}
113             <div class="navitem">
114                 {{> core/search_input }}
115             </div>
116         {{/search}}
117     </div>
118 </div>
119 <h2>{{heading}}</h2>