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/>.
18 @template mod_assign/grading_actions
20 Actions panel at the bottom of the assignment grading UI.
22 Classes required for JS:
25 Data attributes required for JS:
28 Context variables required for this template:
29 * see mod/assign/classes/output/grading_app.php
31 This template is initially hidden, and is only displayed after the current user info has been loaded.
34 <div class="btn-toolbar collapse-buttons">
35 <div class="btn-group">
36 <button type="button" class="btn btn-secondary collapse-review-panel">{{#pix}} layout-expand-right, mod_assign, {{#str}} collapsereviewpanel, mod_assign {{/str}} {{/pix}}</button>
37 <button type="button" class="btn btn-secondary collapse-none active">{{#pix}} layout-default, mod_assign, {{#str}} defaultlayout, mod_assign {{/str}} {{/pix}}</button>
38 <button type="button" class="btn btn-secondary collapse-grade-panel">{{#pix}} layout-expand-left, mod_assign, {{#str}} collapsegradepanel, mod_assign {{/str}} {{/pix}}</button>
42 <form data-region="grading-actions-form" class="hide">
43 <label>{{#str}}sendstudentnotifications, mod_assign{{/str}}
44 <input type="checkbox" name="sendstudentnotifications"
45 {{#defaultsendnotifications}}checked="checked"{{/defaultsendnotifications}} />
47 <button type="submit" class="btn btn-primary" name="savechanges">{{#str}}savechanges{{/str}}</button>
48 <button type="submit" class="btn btn-primary" name="saveandshownext">{{#str}}saveandnext{{/str}}</button>
49 <button type="submit" class="btn btn-secondary" name="resetbutton">{{#str}}reset{{/str}}</button>
52 require(['mod_assign/grading_actions'], function(GradingActions) {
53 new GradingActions('[data-region="grade-actions"]');