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 |
<div class="mr-2">
|
|
|
34 |
<a href="#previous" data-action="previous-user" class="btn btn-sm btn-icon rui-icon-no-margin">
|
|
|
35 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
36 |
<path d="M8.75 12L14.25 7.75V16.25L8.75 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
37 |
</svg>
|
|
|
38 |
</a>
|
|
|
39 |
<span data-region="input-field">
|
|
|
40 |
<select data-action="change-user" data-currentuserid="{{currentuserid}}" data-assignmentid="{{assignmentid}}" data-groupid="{{groupid}}"></select>
|
|
|
41 |
</span>
|
|
|
42 |
<a href="#next" data-action="next-user" class="btn btn-sm btn-icon rui-icon-no-margin">
|
|
|
43 |
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
|
44 |
<path d="M14.25 12L8.75 7.75V16.25L14.25 12Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
|
|
|
45 |
</svg>
|
|
|
46 |
</a>
|
|
|
47 |
|
|
|
48 |
<span data-region="user-count" class="px-2 mx-2 border-left border-right">
|
|
|
49 |
<span data-region="user-count-summary" class="badge badge-light">{{#str}}xofy, mod_assign, { "x": "{{index}}", "y": "{{count}}" }{{/str}}</span>
|
|
|
50 |
</span>
|
|
|
51 |
|
|
|
52 |
<div data-region="configure-filters" id="filter-configuration-{{uniqid}}" class="p-2">
|
|
|
53 |
<form class="text-left">
|
|
|
54 |
<span>
|
|
|
55 |
<label class="mt-0 mb-1 mr-2 d-block small" for="filter-general-{{uniqid}}">
|
|
|
56 |
{{#str}}filter, mod_assign{{/str}}
|
|
|
57 |
</label>
|
|
|
58 |
<select name="filter" class="custom-select mb-2" id="filter-general-{{uniqid}}">
|
|
|
59 |
{{#filters}}
|
|
|
60 |
<option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
|
|
|
61 |
{{/filters}}
|
|
|
62 |
</select>
|
|
|
63 |
</span>
|
|
|
64 |
{{#hasmarkingallocation}}
|
|
|
65 |
<span>
|
|
|
66 |
<label class="mt-0 mb-1 mr-2 d-block small" for="filter-marker-{{uniqid}}">
|
|
|
67 |
{{#str}}markerfilter, mod_assign{{/str}}
|
|
|
68 |
</label>
|
|
|
69 |
<select name="markerfilter" class="custom-select mb-2" id="filter-marker-{{uniqid}}">
|
|
|
70 |
{{#markingallocationfilters}}
|
|
|
71 |
<option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
|
|
|
72 |
{{/markingallocationfilters}}
|
|
|
73 |
</select>
|
|
|
74 |
</span>
|
|
|
75 |
{{/hasmarkingallocation}}
|
|
|
76 |
{{#hasmarkingworkflow}}
|
|
|
77 |
<span>
|
|
|
78 |
<label class="mt-0 mb-1 mr-2 d-block small" for="filter-workflow-{{uniqid}}">
|
|
|
79 |
{{#str}}workflowfilter, mod_assign{{/str}}
|
|
|
80 |
</label>
|
|
|
81 |
<select name="workflowfilter" class="custom-select" id="filter-workflow-{{uniqid}}">
|
|
|
82 |
{{#markingworkflowfilters}}
|
|
|
83 |
<option value="{{key}}" {{#active}}selected="selected"{{/active}} > {{name}} </option>
|
|
|
84 |
{{/markingworkflowfilters}}
|
|
|
85 |
</select>
|
|
|
86 |
</span>
|
|
|
87 |
{{/hasmarkingworkflow}}
|
|
|
88 |
</form>
|
|
|
89 |
</div>
|
|
|
90 |
|
|
|
91 |
<a href="#" class="btn btn-sm btn-icon btn-secondary rui-icon-no-margin" data-region="user-filters" title="{{#str}}changefilters, mod_assign{{/str}}" aria-expanded="false" aria-controls="filter-configuration-{{uniqid}}">
|
|
|
92 |
<span class="accesshide">
|
|
|
93 |
{{#filters}}
|
|
|
94 |
{{filtername}}
|
|
|
95 |
{{/filters}}
|
|
|
96 |
{{^filters}}
|
|
|
97 |
{{#str}}nofilters, mod_assign{{/str}}
|
|
|
98 |
{{/filters}}
|
|
|
99 |
</span>
|
|
|
100 |
{{#pix}}i/filter{{/pix}}
|
|
|
101 |
</a>
|
|
|
102 |
</div>
|