Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

{{!
    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">
    <span class="btn btn-secondary p-1 mr-2">{{>core/drag_handle}}</span>
    <div class="w-100">
        <div class="d-flex align-items-center justify-content-between">
            <div class="d-flex">
                <small class="text-muted text-uppercase px-2">{{entityname}} &bull; {{name}}</small>
            </div>
            <span class="text-nowrap">
                <button class="btn btn-link p-0"
                        data-action="report-remove-column"
                        type="button"
                        title="{{#str}}deletecolumn, core_reportbuilder, {{{name}}}{{/str}}"
                        aria-label="{{#str}}deletecolumn, core_reportbuilder, {{{name}}}{{/str}}">
                        <span class="btn btn-danger p-1">
                            <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L6.75 17.25"></path>
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 6.75L17.25 17.25"></path>
                            </svg>
                        </span>
                </button>
            </span>
        </div>
        <h4 class="text-nowrap">{{{headingeditable}}}</h4>
        <small class="text-nowrap">{{{aggregationeditable}}}</small>
    </div>
</div>