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/local/reactive/debuginstancepanel
19
 
20
    Template to render the global reactive debug panel.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Example context (json):
29
    {
30
        "id": "instanceid"
31
    }
32
}}
33
<div id="{{uniqid}}-reactive-debugpanel-instance" data-id="{{id}}" class="card text-dark">
34
    <div class="card-body">
35
        <h5 class="card-title" data-for="name">
36
            {{id}}
37
            <button href="#" class="btn btn-secondary" data-for="pin" data-alt="{{#str}} reactive_pin , core_debug {{/str}}">
38
                {{#str}} reactive_unpin , core_debug {{/str}}
39
            </button>
40
            <button href="#" class="btn btn-danger float-right" data-for="close">
41
                {{#str}} close , admin {{/str}}
42
            </button>
43
        </h5>
44
        <p class="card-text">
45
            <button
46
                class="btn btn-secondary"
47
                data-for="highlight"
48
                data-alt="{{#str}} reactive_highlighton , core_debug {{/str}}"
49
            >
50
                {{#str}} reactive_highlightoff , core_debug {{/str}}
51
            </button>
52
            <button
53
                class="btn btn-secondary"
54
                data-for="readmode"
55
                data-alt="{{#str}} reactive_readmodeoff , core_debug {{/str}}"
56
            >
57
                {{#str}} reactive_readmodeon , core_debug {{/str}}
58
            </button>
59
            <button
60
                class="btn btn-secondary"
61
                data-for="clean"
62
            >
63
                {{#str}} reactive_resetpanel , core_debug {{/str}}
64
            </button>
65
        </p>
66
        <div>
67
            <h6>
68
                {{#str}} reactive_statedata , core_debug {{/str}}
69
                <button class="btn btn-secondary" data-for="save" disabled>
70
                    {{#str}} save , admin {{/str}}
71
                </button>
72
                <span data-for="invalid">{{#str}} reactive_saveingwarning , core_debug {{/str}}</span>
73
            </h6>
74
            <textarea class="w-100" style="resize:vertical; height: 20em;" data-for="state" draggable="false"></textarea>
75
        </div>
76
        <div>
77
            <h6>State events log</h6>
78
            <textarea class="w-100" style="resize:vertical; height: 20em;" data-for="log" draggable="false"></textarea>
79
        </div>
80
  </div>
81
</div>
82
{{#js}}
83
require(['core/local/reactive/debugpanel'], function(component) {
84
    component.initsubpanel('{{uniqid}}-reactive-debugpanel-instance');
85
});
86
{{/js}}