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/local/conditions/header
19
 
20
    Template for the header of a condition instance within the condition form
21
 
22
    Example context (json):
23
    {
24
        "id": 1,
25
        "heading": "Date modified",
26
        "entityname": "Course"
27
    }
28
}}
29
<div class="condition list-group-item list-group-item-action text-dark" data-region="active-condition"
30
        data-condition-id="{{id}}" data-condition-name="{{heading}}" data-condition-position="{{sortorder}}">
31
    <div class="condition-header d-flex align-items-center">
32
        <span class="btn btn-secondary p-1 mr-2">{{>core/drag_handle}}</span>
33
        <div>
34
            <div class="d-flex">
35
                <small class="text-muted text-uppercase">{{entityname}} &bull; {{heading}}</small>
36
            </div>
37
        </div>
38
        <button class="btn btn-link p-0 ml-auto"
39
                type="button"
40
                data-action="report-remove-condition"
41
                title="{{#str}}deletecondition, core_reportbuilder, {{{heading}}}{{/str}}"
42
                aria-label="{{#str}}deletecondition, core_reportbuilder, {{{heading}}}{{/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
    </div>