Merge branch 'MDL-76800-master' of https://github.com/raortegar/moodle
[moodle.git] / grade / templates / manage_outcomes_action_bar.mustache
blobf61cc4f21a32224b89373d956ed83fa10bc5ebfa
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_grades/manage_outcomes_action_bar
17     Actions bar for the manage outcomes page.
19     Context variables required for this template:
20     * backbutton - The data object containing the required properties to render the 'back' button.
21     * addoutcomebutton - The data object containing the required properties to render the 'add a new outcome' button.
22     * importoutcomesbutton - The data object containing the required properties to render the 'import outcomes' button.
23     * exportoutcomesbutton - The data object containing the required properties to render the 'export outcomes' button.
25     Example context (json):
26     {
27         "backbutton": {
28             "id": "single_button12345",
29             "method" : "get",
30             "classes": "singlebutton",
31             "formid": null,
32             "url" : "#",
33             "primary" : false,
34             "tooltip" : null,
35             "label" : "Back",
36             "attributes": []
37         },
38         "addoutcomebutton": {
39             "id": "single_button13245",
40             "method" : "get",
41             "classes": "singlebutton",
42             "formid": null,
43             "url" : "#",
44             "primary" : true,
45             "tooltip" : null,
46             "label" : "Add a new outcome",
47             "attributes": []
48         },
49         "importoutcomesbutton": {
50             "id": "single_button14325",
51             "method" : "get",
52             "classes": "singlebutton",
53             "formid": null,
54             "url" : "#",
55             "primary" : false,
56             "tooltip" : null,
57             "label" : "Import outcomes",
58             "attributes": []
59         },
60         "exportoutcomesbutton": {
61             "id": "single_button15245",
62             "method" : "get",
63             "classes": "singlebutton",
64             "formid": null,
65             "url" : "#",
66             "primary" : false,
67             "tooltip" : null,
68             "label" : "Export all outcomes",
69             "attributes": []
70         }
71     }
73 <div class="container-fluid tertiary-navigation full-width-bottom-border">
74     <div class="row">
75         {{#backbutton}}
76             <div class="navitem">
77                 {{>core/single_button}}
78             </div>
79             <div class="navitem-divider"></div>
80         {{/backbutton}}
81         {{#addoutcomebutton}}
82             <div class="navitem">
83                 {{>core/single_button}}
84             </div>
85         {{/addoutcomebutton}}
86         <div class="ml-auto d-flex">
87             {{#importoutcomesbutton}}
88                 <div class="navitem">
89                     {{>core/single_button}}
90                 </div>
91             {{/importoutcomesbutton}}
92             {{#exportoutcomesbutton}}
93                 <div class="navitem">
94                     {{>core/single_button}}
95                 </div>
96             {{/exportoutcomesbutton}}
97         </div>
98     </div>
99 </div>