MDL-65978 blog: Fix removing associations
[moodle.git] / course / templates / completion_action_bar.mustache
blob0cf4b868688b07629633f353e17c1a5e044c4fb7
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/completion_action_bar
17     Actions bar in the course completion pages.
19     Context variables required for this template:
20     * navigation - The data object containing the required properties to render core/tertiary_navigation_selector.
22     Example context (json):
23     {
24         "navigation": {
25             "name":"coursecompletionnavigation",
26             "label": "Course completion tertiary navigation",
27             "value": "\/course\/completion.php?id=4",
28             "baseid": "select-menu64a40e3ea86ed8",
29             "selectedoption": "Grader report",
30             "options": [
31                 {
32                     "id": "select-menu-option1",
33                     "name": "Course completion settings",
34                     "value": "/course/completion.php?id=4",
35                     "selected": true
36                 }
37             ],
38             "labelattributes":[
39                 {
40                     "name":"class",
41                     "value":"sr-only"
42                 }
43             ]
44         }
45     }
47 <div class="container-fluid tertiary-navigation border-bottom" id="tertiary-navigation">
48     <div class="row">
49         {{#navigation}}
50             <div class="navitem">
51                 {{>core/tertiary_navigation_selector}}
52             </div>
53         {{/navigation}}
54     </div>
55 </div>