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/modalfooterimage
|
|
|
19 |
|
|
|
20 |
Template to display the footer of the AI generated image modal.
|
|
|
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"
|
|
|
41 |
type="button"
|
|
|
42 |
class="btn btn-primary"
|
|
|
43 |
data-action="generate"
|
|
|
44 |
disabled="disabled">
|
|
|
45 |
<span class="d-inline-block">
|
|
|
46 |
{{#pix}} sparkles-white, tiny_aiplacement {{/pix}}
|
|
|
47 |
</span>
|
|
|
48 |
<span class="d-inline-block">
|
|
|
49 |
{{#str}} generateimage, tiny_aiplacement {{/str}}
|
|
|
50 |
</span>
|
|
|
51 |
</button>
|
|
|
52 |
<button id="{{elementid}}_tiny_aiplacement_prevbutton"
|
|
|
53 |
type="button"
|
|
|
54 |
class="btn btn-primary hidden"
|
|
|
55 |
data-action="back">
|
|
|
56 |
<span class="d-inline-block">
|
|
|
57 |
{{#str}} back, tiny_aiplacement {{/str}}
|
|
|
58 |
</span>
|
|
|
59 |
</button>
|
|
|
60 |
<button id="{{elementid}}_tiny_aiplacement_nextbutton"
|
|
|
61 |
type="button"
|
|
|
62 |
class="btn btn-primary hidden"
|
|
|
63 |
data-action="inserter">
|
|
|
64 |
<span class="d-inline-block">
|
|
|
65 |
{{#str}} next, tiny_aiplacement {{/str}}
|
|
|
66 |
</span>
|
|
|
67 |
<span class="d-inline-block">
|
|
|
68 |
{{#pix}} t/collapsedchevron, core {{/pix}}
|
|
|
69 |
</span>
|
|
|
70 |
</button>
|
|
|
71 |
</div>
|