weekly release 3.9dev
[moodle.git] / grade / templates / edit_tree.mustache
CommitLineData
d68a9ece
FM
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{{!
28cbff4a
MM
18 @template core_grades/edit_tree
19
d68a9ece 20 Edit tree.
28cbff4a
MM
21
22 Example context (json):
23 {
24 "actionurl": "https://domain.example/grade/edit/tree/index.php?id=4",
25 "sesskey": "fakesesskey",
26 "notification": "",
27 "table": "<table class='generaltable simple setup-grades' id='grade_edit_tree_table'><thead> <tr><th>Name</th><th>Weights</th><th>Max grade</th><th>Actions</th> </tr></thead><tbody></tbody></table>",
28 "showsave": "true",
29 "showbulkmove": "true",
30 "bulkmoveoptions": "{'value' : '1', 'name' : 'Test grade category'}",
31 "value": "1",
32 "name": "Test grade category"
33 }
d68a9ece
FM
34}}
35
36<form id="gradetreeform" method="post" action="{{actionurl}}">
37 <div>
38 <input type="hidden" name="sesskey" value="{{sesskey}}">
39 {{#notification}}
40 {{>core/notification_info}}
41 {{/notification}}
42 {{{table}}}
43 <div id="gradetreesubmit">
44 {{#showsave}}
b64bf2d7 45 <input class="advanced btn btn-primary" type="submit" value={{#quote}}{{#str}}savechanges{{/str}}{{/quote}}>
d68a9ece
FM
46 {{/showsave}}
47 {{#showbulkmove}}
b64bf2d7
MM
48 <div class="form-inline mt-3">
49 <input type="hidden" name="bulkmove" value="0" id="bulkmoveinput">
50 <label for="menumoveafter">{{#str}}moveselectedto, grades{{/str}}</label>
85ecaf58 51 <select name="moveafter" id="menumoveafter" class="ignoredirty singleselect custom-select form-control">
b64bf2d7
MM
52 {{#bulkmoveoptions}}
53 <option value="{{value}}">{{name}}</option>
54 {{/bulkmoveoptions}}
55 </select>
d68a9ece
FM
56 </div>
57 {{/showbulkmove}}
58 </div>
59 </div>
60</form>