Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 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 tiny_aiplacement/modalfootertext
19
 
20
    Template to display the footer of the AI text modal within the Tiny Editor.
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Context variables required for this template:
29
    * elementid: The id of the element that will be used to create the modal.
30
 
31
    Example context (json):
32
    {
33
        "elementid": "exampleId"
34
    }
35
}}
36
<div class="tiny-aiplacement-generate-footer">
37
    <button type="button" class="btn btn-secondary" data-action="cancel">
38
        {{#str}} cancel, moodle {{/str}}
39
    </button>
40
    <button id="{{elementid}}_tiny_aiplacement_generatebutton" type="button" class="btn btn-primary" data-action="generate" disabled="disabled">
41
        <span class="d-inline-block">
42
            {{#pix}} sparkles-white, tiny_aiplacement {{/pix}}
43
        </span>
44
        <span class="d-inline-block">
45
            {{#str}} generatetext, tiny_aiplacement {{/str}}
46
        </span>
47
    </button>
48
    <button id="{{elementid}}_tiny_aiplacement_prevbutton" type="button" class="btn btn-primary hidden" data-action="back">
49
        <span class="d-inline-block">
50
            {{#str}} back, tiny_aiplacement {{/str}}
51
        </span>
52
    </button>
53
    <button id="{{elementid}}_tiny_aiplacement_insertbutton" type="button" class="btn btn-primary hidden" data-action="inserter">
54
        <span class="d-inline-block">
55
            {{#str}} insert, tiny_aiplacement {{/str}}
56
        </span>
57
        <span class="d-inline-block">
58
            {{#pix}} t/collapsedchevron, core {{/pix}}
59
        </span>
60
    </button>
61
</div>