mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
9000d8d1a0
Includes nice interactions for element drag & drop, consistent styling for templates and tidy up of element alignment/spacing.
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
{{!
|
|
This file is part of Moodle - http://moodle.org/
|
|
|
|
Moodle is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
Moodle is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
}}
|
|
{{!
|
|
@template core_reportbuilder/table_header_cell
|
|
|
|
This template renders the header of the columns
|
|
|
|
Example context (json):
|
|
{
|
|
"entityname": "Stuff",
|
|
"name": "Demo",
|
|
"headingeditable": "Demo",
|
|
"movetitle": "Move column 'Demo'"
|
|
}
|
|
}}
|
|
<div class="d-flex justify-content-start">
|
|
<div class="mr-2">
|
|
{{>core/drag_handle}}
|
|
</div>
|
|
<div class="w-100">
|
|
<div class="d-flex justify-content-between mb-2">
|
|
<small class="text-muted text-nowrap text-uppercase">{{entityname}} • {{name}}</small>
|
|
<span class="text-nowrap">
|
|
<a data-action="report-remove-column" class="nomargin" href="#">
|
|
{{#pix}}e/cancel, core, {{#str}}deletecolumn, core_reportbuilder, {{{name}}}{{/str}}{{/pix}}
|
|
</a>
|
|
</span>
|
|
</div>
|
|
<h5 class="text-nowrap">{{{headingeditable}}}</h5>
|
|
<small class="text-muted text-nowrap">{{{aggregationeditable}}}</small>
|
|
</div>
|
|
</div>
|