Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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
    <span class="btn btn-secondary p-1 mr-2">{{>core/drag_handle}}</span>
32
    <div class="w-100">
33
        <div class="d-flex align-items-center justify-content-between">
34
            <div class="d-flex">
35
                <small class="text-muted text-uppercase px-2">{{entityname}} &bull; {{name}}</small>
36
            </div>
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
                        <span class="btn btn-danger p-1">
44
                            <svg width="20" height="20" fill="none" viewBox="0 0 24 24">
45
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L6.75 17.25"></path>
46
                                <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 6.75L17.25 17.25"></path>
47
                            </svg>
48
                        </span>
49
                </button>
50
            </span>
51
        </div>
52
        <h4 class="text-nowrap">{{{headingeditable}}}</h4>
53
        <small class="text-nowrap">{{{aggregationeditable}}}</small>
54
    </div>
55
</div>