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_navigation_user_selector
19
 
20
    The template HTML for the user selector in the top right corner.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * data-action, data-assignmentid, data-groupid, data-region
27
 
28
    Context variables required for this template:
29
    * see mod/assign/classes/output/grading_app.php
30
 
31
    This template uses ajax functionality, so it cannot be shown in the template library.
32
 
33
    Example context (json):
34
    { }
35
}}
36
<a href="#previous" data-action="previous-user" aria-label="{{#str}} previoususer, mod_assign {{/str}}" title="{{#str}} previoususer, mod_assign {{/str}}">{{{larrow}}}</a>
37
<span data-region="input-field">
38
    <label for="change-user-select" class="sr-only">{{#str}} changeuser, mod_assign {{/str}}</label>
39
    <select id="change-user-select" data-action="change-user" data-currentuserid="{{currentuserid}}" data-assignmentid="{{assignmentid}}" data-groupid="{{groupid}}"></select>
40
</span>
41
<a href="#next" data-action="next-user" aria-label="{{#str}} nextuser, mod_assign {{/str}}" title="{{#str}} nextuser, mod_assign {{/str}}">{{{rarrow}}}</a>
42
 
43
<br>
44
 
45
<span data-region="user-count">
46
    <small>
47
        <span data-region="user-count-summary">{{#str}}xofy, mod_assign, { "x": "{{index}}", "y": "{{count}}" }{{/str}}</span>
48
    </small>
49
</span>
50
<a href="#" data-region="user-filters" title="{{#str}}changefilters, mod_assign{{/str}}" aria-expanded="false" aria-controls="filter-configuration-{{uniqid}}">
51
    <span class="accesshide">
52
        {{#filters}}
53
            {{filtername}}
54
        {{/filters}}
55
        {{^filters}}
56
            {{#str}}nofilters, mod_assign{{/str}}
57
        {{/filters}}
58
    </span>
59
    {{#pix}}i/filter{{/pix}}
60
</a>
61
<a href="#" data-region="user-resettable" title="{{#str}}resettable{{/str}}">
62
    {{#str}}resettable{{/str}}
63
</a>
64
<div data-region="configure-filters" id="filter-configuration-{{uniqid}}" class="card card-large p-2">
65
    <form>
66
        <span class="row px-3 py-1">
67
            <label class="text-right w-25 p-2 m-0" for="filter-general-{{uniqid}}">
68
                {{#str}}filter, mod_assign{{/str}}
69
            </label>
70
            <select name="filter" class="custom-select w-50" id="filter-general-{{uniqid}}">
71
            {{#filters}}
72
                <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
73
            {{/filters}}
74
            </select>
75
        </span>
76
        {{#hasmarkingallocation}}
77
        <span class="row px-3 py-1">
78
            <label class="text-right w-25 p-2 m-0" for="filter-marker-{{uniqid}}">
79
                {{#str}}markerfilter, mod_assign{{/str}}
80
            </label>
81
            <select name="markerfilter" class="custom-select w-50" id="filter-marker-{{uniqid}}">
82
            {{#markingallocationfilters}}
83
                <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
84
            {{/markingallocationfilters}}
85
            </select>
86
        </span>
87
        {{/hasmarkingallocation}}
88
        {{#hasmarkingworkflow}}
89
        <span class="row px-3 py-1">
90
            <label class="text-right w-25 p-2 m-0" for="filter-workflow-{{uniqid}}">
91
                {{#str}}workflowfilter, mod_assign{{/str}}
92
            </label>
93
            <select name="workflowfilter" class="custom-select w-50" id="filter-workflow-{{uniqid}}">
94
            {{#markingworkflowfilters}}
95
                <option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
96
            {{/markingworkflowfilters}}
97
            </select>
98
        </span>
99
        {{/hasmarkingworkflow}}
100
    </form>
101
</div>