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_forum/local/grades/local/grader/navigation
|
|
|
19 |
|
|
|
20 |
Classes required for JS:
|
|
|
21 |
* none
|
|
|
22 |
|
|
|
23 |
Data attributes required for JS:
|
|
|
24 |
* data-action="togglefullscreen"
|
|
|
25 |
* data-action="closegrader"
|
|
|
26 |
* data-action="savegrade"
|
|
|
27 |
* data-action="expandgrader"
|
|
|
28 |
|
|
|
29 |
Context variables required for this template:
|
|
|
30 |
* moduleName: The name of the module this grading interface is for i.e. "Chef the Forum"
|
|
|
31 |
|
|
|
32 |
Example context (json):
|
|
|
33 |
{
|
|
|
34 |
"moduleName": "Chef the Forum"
|
|
|
35 |
}
|
|
|
36 |
}}
|
|
|
37 |
<nav id="nav-container-{{uniqid}}" class="grader-grading_navigation navbar border-bottom" aria-label="{{#str}} forumgradingnavigation, mod_forum {{/str}}">
|
|
|
38 |
<div class="d-none d-sm-inline-flex align-items-center">
|
|
|
39 |
<a href="{{{courseUrl}}}" class="badge badge-link badge-secondary">
|
|
|
40 |
<svg class="mr-2" width="20" height="20" fill="none" viewBox="0 0 24 24">
|
|
|
41 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.25 5.75C19.25 5.19772 18.8023 4.75 18.25 4.75H14C12.8954 4.75 12 5.64543 12 6.75V19.25L12.8284 18.4216C13.5786 17.6714 14.596 17.25 15.6569 17.25H18.25C18.8023 17.25 19.25 16.8023 19.25 16.25V5.75Z"></path>
|
|
|
42 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.75 5.75C4.75 5.19772 5.19772 4.75 5.75 4.75H10C11.1046 4.75 12 5.64543 12 6.75V19.25L11.1716 18.4216C10.4214 17.6714 9.40401 17.25 8.34315 17.25H5.75C5.19772 17.25 4.75 16.8023 4.75 16.25V5.75Z"></path>
|
|
|
43 |
</svg>
|
|
|
44 |
{{courseName}}
|
|
|
45 |
</a>
|
|
|
46 |
<button class="badge badge-link badge-light border-0" data-action="closegrader">
|
|
|
47 |
<svg class="mr-2" width="20" height="20" fill="none" viewBox="0 0 24 24">
|
|
|
48 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.25 4.75L4.75 9L9.25 13.25"></path>
|
|
|
49 |
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.5 9H15.25C17.4591 9 19.25 10.7909 19.25 13V19.25"></path>
|
|
|
50 |
</svg>
|
|
|
51 |
{{moduleName}}
|
|
|
52 |
</button>
|
|
|
53 |
<span class="badge">{{#str}}grading, forum{{/str}}</span>
|
|
|
54 |
</ol>
|
|
|
55 |
</div>
|
|
|
56 |
|
|
|
57 |
<div class="ml-auto">
|
|
|
58 |
<button
|
|
|
59 |
class="btn btn-link btn-sm drawer-button mr-1 active"
|
|
|
60 |
data-action="expand-grading-drawer"
|
|
|
61 |
aria-controls="grading-drawer-{{uniqid}}"
|
|
|
62 |
aria-expanded="true"
|
|
|
63 |
type="button"
|
|
|
64 |
title="{{#str}} showgraderpanel, mod_forum {{/str}}"
|
|
|
65 |
>
|
|
|
66 |
<span class="dir-ltr-hide" aria-hidden="true">{{#pix}} show-grader-panel-rtl, mod_forum, {{#str}} showgraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
67 |
<span class="dir-rtl-hide" aria-hidden="true">{{#pix}} show-grader-panel, mod_forum, {{#str}} showgraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
68 |
</button>
|
|
|
69 |
<button
|
|
|
70 |
class="btn btn-link btn-sm drawer-button mr-1"
|
|
|
71 |
aria-label="{{#str}} hidegraderpanel, mod_forum {{/str}}"
|
|
|
72 |
data-action="collapse-grading-drawer"
|
|
|
73 |
aria-controls="grading-drawer-{{uniqid}}"
|
|
|
74 |
aria-expanded="true"
|
|
|
75 |
type="button"
|
|
|
76 |
title="{{#str}} hidegraderpanel, mod_forum {{/str}}"
|
|
|
77 |
>
|
|
|
78 |
<span aria-hidden="true">{{#pix}} hide-grader-panel, mod_forum, {{#str}} hidegraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
79 |
</button>
|
|
|
80 |
<button
|
|
|
81 |
class="btn btn-primary btn-sm"
|
|
|
82 |
data-action="savegrade"
|
|
|
83 |
>
|
|
|
84 |
{{#str}} save {{/str}}
|
|
|
85 |
</button>
|
|
|
86 |
<button
|
|
|
87 |
class="btn btn-secondary btn-sm"
|
|
|
88 |
aria-label="{{#str}} closegrader, mod_forum {{/str}}"
|
|
|
89 |
data-action="closegrader"
|
|
|
90 |
type="button"
|
|
|
91 |
>
|
|
|
92 |
{{#str}} close, mod_forum {{/str}}
|
|
|
93 |
</button>
|
|
|
94 |
</div>
|
|
|
95 |
</nav>
|