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 px-0 px-sm-3" aria-label="{{#str}} forumgradingnavigation, mod_forum {{/str}}">
|
|
|
38 |
<div class="container-fluid p-0">
|
|
|
39 |
<div class="d-none d-sm-flex align-items-center">
|
|
|
40 |
<a href="{{{courseUrl}}}" class="btn btn-link px-2 colour-inherit">
|
|
|
41 |
<h5 class="d-inline px-0 mb-0">{{courseName}}</h5>
|
|
|
42 |
</a>
|
|
|
43 |
<span class="text-muted icon-no-margin">{{#pix}} i/breadcrumbdivider, core {{/pix}}</span>
|
|
|
44 |
<button class="btn btn-link px-2 colour-inherit" data-action="closegrader">
|
|
|
45 |
<h5 class="d-inline px-0 mb-0">{{moduleName}}</h5>
|
|
|
46 |
</button>
|
|
|
47 |
<span class="text-muted icon-no-margin">{{#pix}} i/breadcrumbdivider, core {{/pix}}</span>
|
|
|
48 |
<h5 class="d-inline px-2 mb-0 font-weight-bold">{{#str}}grading, forum{{/str}}</h5>
|
|
|
49 |
</div>
|
|
|
50 |
|
|
|
51 |
<div class="ml-1 ml-sm-auto">
|
|
|
52 |
<button
|
|
|
53 |
class="btn btn-icon icon-no-margin drawer-button mr-1 active"
|
|
|
54 |
data-action="expand-grading-drawer"
|
|
|
55 |
aria-controls="grading-drawer-{{uniqid}}"
|
|
|
56 |
aria-expanded="true"
|
|
|
57 |
type="button"
|
|
|
58 |
title="{{#str}} showgraderpanel, mod_forum {{/str}}"
|
|
|
59 |
>
|
|
|
60 |
<span class="dir-ltr-hide" aria-hidden="true">{{#pix}} show-grader-panel-rtl, mod_forum, {{#str}} showgraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
61 |
<span class="dir-rtl-hide" aria-hidden="true">{{#pix}} show-grader-panel, mod_forum, {{#str}} showgraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
62 |
</button>
|
|
|
63 |
<button
|
|
|
64 |
class="btn btn-icon icon-no-margin drawer-button mr-1 d-none d-sm-inline-block"
|
|
|
65 |
aria-label="{{#str}} hidegraderpanel, mod_forum {{/str}}"
|
|
|
66 |
data-action="collapse-grading-drawer"
|
|
|
67 |
aria-controls="grading-drawer-{{uniqid}}"
|
|
|
68 |
aria-expanded="true"
|
|
|
69 |
type="button"
|
|
|
70 |
title="{{#str}} hidegraderpanel, mod_forum {{/str}}"
|
|
|
71 |
>
|
|
|
72 |
<span aria-hidden="true">{{#pix}} hide-grader-panel, mod_forum, {{#str}} hidegraderpanel, mod_forum {{/str}} {{/pix}}</span>
|
|
|
73 |
</button>
|
|
|
74 |
<button
|
|
|
75 |
class="btn btn-primary font-weight-bold ml-sm-2 px-4"
|
|
|
76 |
data-action="savegrade"
|
|
|
77 |
>
|
|
|
78 |
{{#str}} save {{/str}}
|
|
|
79 |
</button>
|
|
|
80 |
<button
|
|
|
81 |
class="btn btn-secondary font-weight-bold ml-1 ml-sm-2 px-4"
|
|
|
82 |
aria-label="{{#str}} closegrader, mod_forum {{/str}}"
|
|
|
83 |
data-action="closegrader"
|
|
|
84 |
type="button"
|
|
|
85 |
>
|
|
|
86 |
{{#str}} close, mod_forum {{/str}}
|
|
|
87 |
</button>
|
|
|
88 |
<div class="btn-group d-none d-sm-inline-block">
|
|
|
89 |
<button
|
|
|
90 |
class="btn btn-icon text-muted icon-no-margin icon-size-3 ml-2"
|
|
|
91 |
type="button"
|
|
|
92 |
id="grader-actions-menu-{{uniqid}}"
|
|
|
93 |
data-toggle="dropdown"
|
|
|
94 |
aria-haspopup="true"
|
|
|
95 |
aria-expanded="false"
|
|
|
96 |
aria-label="{{#str}} actionsforgraderinterface, mod_forum {{/str}}"
|
|
|
97 |
>
|
|
|
98 |
{{#pix}} i/menu, core {{/pix}}
|
|
|
99 |
</button>
|
|
|
100 |
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="grader-actions-menu-{{uniqid}}">
|
|
|
101 |
<button
|
|
|
102 |
class="dropdown-item"
|
|
|
103 |
type="button"
|
|
|
104 |
data-action="togglefullscreen"
|
|
|
105 |
type="button"
|
|
|
106 |
>
|
|
|
107 |
{{#str}} togglefullscreen, mod_forum {{/str}}
|
|
|
108 |
</button>
|
|
|
109 |
</div>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
</div>
|
|
|
113 |
</nav>
|