Commit | Line | Data |
---|---|---|
bae67469 MM |
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_forum/local/grades/local/grader | |
19 | ||
20 | Classes required for JS: | |
21 | * TODO | |
22 | ||
23 | Data attributes required for JS: | |
a62c68fb MM |
24 | * data-first-userid="350" |
25 | * data-cmid="1337" | |
bae67469 MM |
26 | |
27 | Context variables required for this template: | |
a62c68fb MM |
28 | * userid: ID of the first user to jump to |
29 | * cmid: ID of the course module we want to grade | |
bae67469 MM |
30 | |
31 | Example context (json): | |
32 | { | |
a62c68fb MM |
33 | "userid": 350, |
34 | "cmid": 1337 | |
bae67469 MM |
35 | } |
36 | }} | |
46d51c8c RW |
37 | <div |
38 | class="d-flex flex-column h-100 unified-grader" | |
a62c68fb | 39 | data-region="unified-grader" |
46d51c8c | 40 | {{#userid}}data-first-userid="{{.}}"{{/userid}} |
a62c68fb | 41 | data-cmid="{{cmid}}" |
46d51c8c RW |
42 | > |
43 | {{> mod_forum/local/grades/local/grader/navigation }} | |
44 | ||
45 | <div class="d-flex flex-grow-1 h-100 position-relative"> | |
46 | {{#drawer}}{{> mod_forum/local/grades/local/grader/grading }}{{/drawer}} | |
bae67469 | 47 | {{> mod_forum/local/grades/local/grader/content }} |
bae67469 MM |
48 | </div> |
49 | </div> |