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 gradereport_grader/headercell
|
|
|
19 |
|
|
|
20 |
Header cell template
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"headerlink": "<a class='gradeitemheader' href='index.php?id=2&sortitemid=2'><img class='icon itemicon' src='http://moodlesite/theme/image.php/boost/assign/1680563323/monologo' alt='Assignment' />Assignment 1</a>",
|
|
|
25 |
"arrow": "<a title='Descending' aria-label='Descending' href='index.php?id=2&sortitemid=2'><i class='icon fa fa-sort-desc fa-fw sorticon' aria-hidden='true' ></i></a>",
|
|
|
26 |
"singleview": "<div class='action-menu moodle-actionmenu grader' id='action-menu-8' data-enhance='moodle-core-actionmenu'></div>",
|
|
|
27 |
"statusicons": "<div class='grade_icons'><i class='icon fa fa-lock fa-fw text-muted' title='Locked' role='img' aria-label='Locked'></i></div>"
|
|
|
28 |
}
|
|
|
29 |
}}
|
|
|
30 |
<div class="d-flex flex-column h-100">
|
|
|
31 |
<div class="d-none flex-grow-1 align-items-start" data-collapse="expandbutton">
|
|
|
32 |
{{{collapsedicon}}}
|
|
|
33 |
</div>
|
|
|
34 |
<div class="d-flex" data-collapse="content">
|
|
|
35 |
<div class="d-flex flex-grow-1">
|
|
|
36 |
{{{headerlink}}}
|
|
|
37 |
<div class="mx-2 mt-2">
|
|
|
38 |
{{{arrow}}}
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
<div>
|
|
|
42 |
{{{singleview}}}
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|
|
|
45 |
<div class="d-flex flex-grow-1 align-items-end">
|
|
|
46 |
{{{statusicons}}}
|
|
|
47 |
</div>
|
|
|
48 |
</div>
|