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/imagecontrols
19
 
20
    Modal to manage AI generated image content 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-image-options">
37
    <div class="mb-3">
38
        <label for="{{elementid}}_tiny_aiplacement_imageprompt" class="fw-bold">
39
            {{#str}} imageprompt_label, tiny_aiplacement {{/str}}
40
        </label>
41
        <textarea
42
                class="form-control"
43
                id="{{elementid}}_tiny_aiplacement_imageprompt"
44
                rows="3"
45
                placeholder="{{#str}} imageprompt_placeholder, tiny_aiplacement {{/str}}"
46
        ></textarea>
47
    </div>
48
    <span class="fw-bold">
49
        {{#str}} imagequality, tiny_aiplacement{{/str}}
50
    </span>
51
    <div class="tiny-aiplacement-toggle-container mt-1 mb-1">
52
        <div class="btn-group w-100" role="group" aria-label="{{#str}} imagequality, tiny_aiplacement{{/str}}">
53
            <input
54
                type="radio"
55
                class="btn-check"
56
                name="quality"
57
                value="standard"
58
                id="quality-standard"
59
                checked
60
            >
61
            <label class="btn btn-outline-secondary" for="quality-standard">
62
                {{#str}} definitionstandard, tiny_aiplacement{{/str}}
63
            </label>
64
            <input
65
                type="radio"
66
                class="btn-check"
67
                name="quality"
68
                value="hd"
69
                id="quality-hd"
70
            >
71
            <label class="btn btn-outline-secondary" for="quality-hd">
72
                {{#str}} definitionhigh, tiny_aiplacement{{/str}}
73
            </label>
74
        </div>
75
    </div>
76
    <span class="fw-bold">
77
        {{#str}} aspectratio, tiny_aiplacement{{/str}}
78
    </span>
79
    <div class="tiny-aiplacement-aspect-ratio-container mt-1 mb-1">
80
        <div class="btn-group w-100" role="group" aria-label="{{#str}} aspectratio, tiny_aiplacement{{/str}}">
81
            <input
82
                type="radio"
83
                class="btn-check"
84
                name="aspect-ratio"
85
                value="square"
86
                id="aspect-square"
87
                checked
88
            >
89
            <label class="btn btn-outline-secondary" for="aspect-square">
90
                <span class="d-block"><i class="fas fa-square"></i></span>
91
                {{#str}} aspectsquare, tiny_aiplacement{{/str}}
92
            </label>
93
            <input
94
                type="radio"
95
                class="btn-check"
96
                name="aspect-ratio"
97
                value="landscape"
98
                id="aspect-landscape"
99
            >
100
            <label class="btn btn-outline-secondary" for="aspect-landscape">
101
                <span class="d-block"><i class="fas fa-mobile fa-rotate-90"></i></span>
102
                {{#str}} aspectlandscape, tiny_aiplacement{{/str}}
103
            </label>
104
            <input
105
                type="radio"
106
                class="btn-check"
107
                name="aspect-ratio"
108
                value="portrait"
109
                id="aspect-portrait"
110
            >
111
            <label class="btn btn-outline-secondary" for="aspect-portrait">
112
                <span class="d-block"><i class="fas fa-mobile"></i></span>
113
                {{#str}} aspectportrait, tiny_aiplacement{{/str}}
114
            </label>
115
        </div>
116
    </div>
117
</div>