Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
{{!
18
    @template mod_assign/grading_actions
19
 
20
    Actions panel at the bottom of the assignment grading UI.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * data-region
27
 
28
    Context variables required for this template:
29
    * see mod/assign/classes/output/grading_app.php
30
 
31
    This template is initially hidden, and is only displayed after the current user info has been loaded.
32
}}
33
<div class="d-flex justify-content-between">
34
    <form data-region="grading-actions-form" class="hide flex-grow-1 align-self-center">
35
        <label>{{#str}}sendstudentnotifications, mod_assign{{/str}}
36
               <input type="checkbox" name="sendstudentnotifications"
37
                      {{#defaultsendnotifications}}checked="checked"{{/defaultsendnotifications}} />
38
        </label>
39
        {{#helpicon}}
40
            {{>core/help_icon}}
41
        {{/helpicon}}
42
        <button type="submit" class="btn btn-primary" name="savechanges">{{#str}}savechanges{{/str}}</button>
43
        <button type="submit" class="btn btn-primary" name="saveandshownext">{{#str}}saveandnext{{/str}}</button>
44
        <button type="submit" class="btn btn-secondary" name="resetbutton">{{#str}}reset{{/str}}</button>
45
    </form>
46
    {{#showreview}}
47
        <div class="btn-toolbar collapse-buttons">
48
            <div class="btn-group">
49
                <button type="button" class="btn btn-secondary collapse-review-panel" aria-label="{{#str}} collapsereviewpanel, mod_assign {{/str}}" title="{{#str}} collapsereviewpanel, mod_assign {{/str}}">
50
                    {{#pix}} layout-expand-right, mod_assign {{/pix}}
51
                </button>
52
                <button type="button" class="btn btn-secondary collapse-none active" aria-label="{{#str}} defaultlayout, mod_assign {{/str}}" title="{{#str}} defaultlayout, mod_assign {{/str}}">
53
                    {{#pix}} layout-default, mod_assign {{/pix}}
54
                </button>
55
                <button type="button" class="btn btn-secondary collapse-grade-panel" aria-label="{{#str}} collapsegradepanel, mod_assign {{/str}}" title="{{#str}} collapsegradepanel, mod_assign {{/str}}">
56
                    {{#pix}} layout-expand-left, mod_assign {{/pix}}
57
                </button>
58
            </div>
59
        </div>
60
    {{/showreview}}
61
</div>
62
{{#js}}
63
require(['mod_assign/grading_actions'], function(GradingActions) {
64
    new GradingActions('[data-region="grade-actions"]');
65
});
66
{{/js}}