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
{{#showreview}}
34
    <div class="btn-toolbar rui-grader-toolbar collapse-buttons">
35
        <div class="btn-group">
36
            <button type="button" class="btn btn-sm btn-icon btn-secondary collapse-review-panel"><svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
37
                    <path d="M12.01 16l-.01.011M12.01 12l-.01.011M12.01 8l-.01.011M8.01 12l-.01.011M16.01 12l-.01.011M21 3.6v16.8a.6.6 0 01-.6.6H3.6a.6.6 0 01-.6-.6V3.6a.6.6 0 01.6-.6h16.8a.6.6 0 01.6.6z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
38
                </svg></button>
39
            <button type="button" class="btn btn-sm btn-icon btn-secondary collapse-none active">
40
                <svg width="24" stroke-width="1.5" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
41
                    <path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
42
                    <path d="M7.25 10L5.5 12l1.75 2M9.5 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
43
                </svg>
44
            </button>
45
            <button type="button" class="btn btn-sm btn-icon btn-secondary collapse-grade-panel">
46
                <svg width="24" stroke-width="1.5" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor">
47
                    <path d="M19 21H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2zM9.5 21V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
48
                    <path d="M5.5 10l1.75 2-1.75 2" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
49
                </svg>
50
            </button>
51
        </div>
52
    </div>
53
{{/showreview}}
54
<form data-region="grading-actions-form" class="text-left ml-auto d-inline-flex align-items-center">
55
    <div class="custom-control custom-switch">
56
        <input type="checkbox" name="sendstudentnotifications" {{#defaultsendnotifications}}checked="checked" {{/defaultsendnotifications}} class="custom-control-input" id="sendstudentnotifications" {{#entertosend}}checked{{/entertosend}}>
57
        <label class="custom-control-label" for="sendstudentnotifications">
58
            {{#str}}sendstudentnotifications, mod_assign{{/str}}
59
        </label>
60
    </div>
61
    {{#helpicon}}
62
    {{>core/help_icon}}
63
    {{/helpicon}}
64
    <button type="submit" class="btn btn-sm btn-primary" name="savechanges">
65
        <svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24">
66
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"></path>
67
        </svg>
68
        {{#str}}savechanges{{/str}}
69
    </button>
70
 
71
    <button type="submit" class="btn btn-sm btn-outline-primary" name="saveandshownext">
72
        <svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24">
73
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" d="M5.75 12.8665L8.33995 16.4138C9.15171 17.5256 10.8179 17.504 11.6006 16.3715L18.25 6.75"></path>
74
        </svg>
75
        {{#str}}saveandnext{{/str}}
76
        <svg class="ml-2" width="16" height="16" fill="none" viewBox="0 0 24 24">
77
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.75 6.75L19.25 12L13.75 17.25"></path>
78
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H4.75"></path>
79
        </svg>
80
    </button>
81
 
82
    <button type="submit" class="btn btn-sm btn-outline-danger" name="resetbutton">
83
        <svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24">
84
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.25 4.75L8.75 7L11.25 9.25"></path>
85
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12.75 19.25L15.25 17L12.75 14.75"></path>
86
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 7H13.25C16.5637 7 19.25 9.68629 19.25 13V13.25"></path>
87
            <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.25 17H10.75C7.43629 17 4.75 14.3137 4.75 11V10.75"></path>
88
        </svg>
89
 
90
        {{#str}}reset{{/str}}
91
    </button>
92
</form>
93
{{#js}}
94
    require(['mod_assign/grading_actions'], function(GradingActions) {
95
    new GradingActions('[data-region="grade-actions"]');
96
    });
97
{{/js}}