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 core_reportbuilder/table_header_cell
|
|
|
19 |
|
|
|
20 |
This template renders the header of the columns
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"entityname": "Stuff",
|
|
|
25 |
"name": "Demo",
|
|
|
26 |
"headingeditable": "Demo",
|
|
|
27 |
"movetitle": "Move column 'Demo'"
|
|
|
28 |
}
|
|
|
29 |
}}
|
|
|
30 |
<div class="d-flex justify-content-start">
|
|
|
31 |
<div class="mr-2">
|
|
|
32 |
{{>core/drag_handle}}
|
|
|
33 |
</div>
|
|
|
34 |
<div class="w-100">
|
|
|
35 |
<div class="d-flex justify-content-between mb-2">
|
|
|
36 |
<small class="text-muted text-nowrap text-uppercase">{{entityname}} • {{name}}</small>
|
|
|
37 |
<span class="text-nowrap">
|
|
|
38 |
<button class="btn btn-link p-0"
|
|
|
39 |
data-action="report-remove-column"
|
|
|
40 |
type="button"
|
|
|
41 |
title="{{#str}}deletecolumn, core_reportbuilder, {{{name}}}{{/str}}"
|
|
|
42 |
aria-label="{{#str}}deletecolumn, core_reportbuilder, {{{name}}}{{/str}}">
|
|
|
43 |
{{#pix}}e/cancel, core{{/pix}}
|
|
|
44 |
</button>
|
|
|
45 |
</span>
|
|
|
46 |
</div>
|
|
|
47 |
<h3 class="h5 text-nowrap">{{{headingeditable}}}</h3>
|
|
|
48 |
<small class="text-muted text-nowrap">{{{aggregationeditable}}}</small>
|
|
|
49 |
</div>
|
|
|
50 |
</div>
|