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