MDL-55584 core_grades: Convert part of set-up screen to template
[moodle.git] / grade / templates / edit_tree.mustache
1 {{!
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/>.
16 }}
17 {{!
18     Edit tree.
19 }}
21 <form id="gradetreeform" method="post" action="{{actionurl}}">
22     <div>
23         <input type="hidden" name="sesskey" value="{{sesskey}}">
24         {{#notification}}
25             {{>core/notification_info}}
26         {{/notification}}
27         {{{table}}}
28         <div id="gradetreesubmit">
29             {{#showsave}}
30                 <input class="advanced" type="submit" value={{#quote}}{{#str}}savechanges{{/str}}{{/quote}}>
31             {{/showsave}}
32             {{#showbulkmove}}
33                 <br><br>
34                 <input type="hidden" name="bulkmove" value="0" id="bulkmoveinput">
35                 <label for="menumoveafter">{{#str}}moveselectedto, grades{{/str}}</label>
36                 <select name="moveafter" id="menumoveafter" class="ignoredirty singleselect select">
37                     {{#bulkmoveoptions}}
38                         <option value="{{value}}">{{name}}</option>
39                     {{/bulkmoveoptions}}
40                 </select>
41                 <div id="noscriptgradetreeform" class="hiddenifjs">
42                     <input type="submit" name={{#quote}}{{#str}}go{{/str}}{{/quote}}>
43                 </div>
44             {{/showbulkmove}}
45         </div>
46     </div>
47 </form>