MDL-66893 mod_forum: update grading panel UI in grader
[moodle.git] / mod / forum / templates / local / grades / local / grader / navigation.mustache
CommitLineData
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/navigation
19
20 Classes required for JS:
a62c68fb 21 * none
bae67469
MM
22
23 Data attributes required for JS:
a62c68fb
MM
24 * data-action="togglefullscreen"
25 * data-action="closegrader"
26 * data-action="savegrade"
27 * data-action="expandgrader"
bae67469
MM
28
29 Context variables required for this template:
a62c68fb 30 * moduleName: The name of the module this grading interface is for i.e. "Chef the Forum"
bae67469
MM
31
32 Example context (json):
33 {
a62c68fb 34 "moduleName": "Chef the Forum"
bae67469
MM
35 }
36}}
37<div class="grader-grading_navigation col-sm-12">
38 <div class="row">
39 <div class="col-sm-12 col-md-8 py-3">
40 <div class="d-block">
d3b890f8 41 <h6 class="d-inline btn px-0 font-weight-bold text-muted mb-0">{{moduleName}}</h6>
bae67469 42 <h6 class="d-inline btn px-0 font-weight-bold text-muted mb-0"> > </h6>
d3b890f8 43 <h6 class="d-inline btn px-0 font-weight-bold mb-0">{{#str}}grading, forum{{/str}}</h6>
bae67469
MM
44 </div>
45 </div>
46
47 <div class="col-sm-12 col-md-4 py-3">
48
49 <a href="#" class="btn fa fa-arrows-alt float-right" aria-label="Toggle fullscreen" data-action="togglefullscreen"></a>
50
51 <a href="#" class="btn btn-secondary float-right" aria-label="Close grade interface" data-action="closegrader">Close</a>
52
eaee6477 53 <a href="#" role="button" class="btn btn-primary float-right" aria-label="Save and quit" data-action="savegrade">Save</a>
bae67469
MM
54
55 <!--TODO Manipulate grader panel see also Grading panel-->
56 <a href="#" role="button" class="btn fa fa-check-circle float-right" aria-label="Open or close grader panel" data-action="expandgrader"></a>
57
58 </div>
59 </div>
60</div>