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_media/embed/body/media_details_body
19
 
20
    Media preview body template.
21
 
22
    Example context (json):
23
    {
24
        "isLink": true,
25
        "isVideo": true,
26
        "isAudioTag": true,
27
        "isVideoTag": true,
28
        "elementid": "id",
29
        "media" : {
30
            "poster": "link/to/poster",
31
            "title": "media name/title",
32
            "isUpdating": true,
33
            "controls": true,
34
            "autoplay": false,
35
            "muted": false,
36
            "loop": false,
37
            "width": "1200",
38
            "height": "800"
39
        }
40
    }
41
 
42
}}
43
<div id="tiny-media-details-body" class="d-none">
44
    <div class="container">
45
        <div class="row">
46
            <div class="col-lg-7 p-0">
47
                <div class="tiny_media_preview_box border rounded">
48
                    <button class="btn btn-secondary rounded-circle tiny_media_delete_icon" tabindex="0" title="{{#str}} deletemedia, tiny_media {{/str}}">
49
                        <i class="fa fa-trash-o"></i>
50
                    </button>
51
                    <div id="media-filter-preview-container" class="w-100 text-center"></div>
52
                </div>
53
            </div>
54
            <div class="tiny_media_properties_col col-lg-5 tiny_media_source tiny_media_poster_source">
55
                <div class="mb-2">
56
                    <div>
57
                        <label for="{{elementid}}_tiny_media_title_entry">{{#str}} entertitle, tiny_media {{/str}}</label>
58
                        <div class="input-group-append">
59
                            <input
60
                                class="tiny_media_title_entry form-control"
61
                                type="text"
62
                                id="{{elementid}}_tiny_media_title_entry"
63
                                size="32"
64
                                {{#media.title}}value="{{media.title}}"{{/media.title}}
65
                            >
66
                        </div>
67
                    </div>
68
                    {{#isVideo}}
69
                        <div class="video-thumbnail">
70
                            <div class="input-group-append mt-2">
71
                                <button class="btn btn-primary upload-custom-thumbnail" type="button">
72
                                    {{#media.poster}}
73
                                        {{#str}} changethumbnail, tiny_media {{/str}}
74
                                    {{/media.poster}}
75
                                    {{^media.poster}}
76
                                        {{#str}} uploadthumbnail, tiny_media {{/str}}
77
                                    {{/media.poster}}
78
                                </button>
79
                            </div>
80
                            {{#media.poster}}
81
                                <div class="input-group-append mt-2">
82
                                    <button class="btn btn-secondary delete-custom-thumbnail" type="button">{{#str}} deleteembeddedthumbnail, tiny_media {{/str}}</button>
83
                                </div>
84
                            {{/media.poster}}
85
                        </div>
86
                    {{/isVideo}}
87
                </div>
88
                {{#showControl}}
89
                    <div class="mt-4">
90
                        <div class="input-group-append">
91
                            <input
92
                                type="checkbox"
93
                                class="form-check-input tiny_media_controls"
94
                                id="vadvancedsettings_media-controls-toggle"
95
                                {{#isNewFileOrLinkUpload}}checked{{/isNewFileOrLinkUpload}}
96
                                {{#media.controls}}checked{{/media.controls}}
97
                            >
98
                            <label class="form-check-label" for="vadvancedsettings_media-controls-toggle">
99
                                {{#str}} controls, tiny_media {{/str}}
100
                            </label>
101
                        </div>
102
                        <div class="input-group-append">
103
                            <input
104
                                type="checkbox"
105
                                class="form-check-input tiny_media_autoplay"
106
                                id="vadvancedsettings_media-autoplay-toggle"
107
                                {{#media.autoplay}}checked{{/media.autoplay}}
108
                            >
109
                            <label class="form-check-label" for="vadvancedsettings_media-autoplay-toggle">
110
                                {{#str}} autoplay, tiny_media {{/str}}
111
                            </label>
112
                        </div>
113
                        <div class="input-group-append">
114
                            <input
115
                                type="checkbox"
116
                                class="form-check-input tiny_media_mute"
117
                                id="vadvancedsettings_media-mute-toggle"
118
                                {{#media.muted}}checked{{/media.muted}}
119
                            >
120
                            <label class="form-check-label" for="vadvancedsettings_media-mute-toggle">
121
                                {{#str}} mute, tiny_media {{/str}}
122
                            </label>
123
                        </div>
124
                        <div class="input-group-append">
125
                            <input
126
                                type="checkbox"
127
                                class="form-check-input tiny_media_loop"
128
                                id="vadvancedsettings_media-loop-toggle"
129
                                {{#media.loop}}checked{{/media.loop}}
130
                            >
131
                            <label class="form-check-label" for="vadvancedsettings_media-loop-toggle">
132
                                {{#str}} loop, tiny_media {{/str}}
133
                            </label>
134
                        </div>
135
                    </div>
136
 
137
                    {{#isVideo}}
138
                        <div class="media-size-properties">
139
                            <hr>
140
                            <div>
141
                                <input type="radio" class="tiny_media_sizeoriginal form-check-input" id="{{elementid}}_tiny_media_sizeoriginal" name="radioOptions">
142
                                <label class="form-check-label" for="{{elementid}}_tiny_media_sizeoriginal">{{#str}} sizeoriginal, tiny_media {{/str}}</label>
143
                            </div>
144
                            <div>
145
                                <input type="radio" class="tiny_media_sizecustom form-check-input" id="{{elementid}}_tiny_media_sizecustom" name="radioOptions">
146
                                <label class="form-check-label" for="{{elementid}}_tiny_media_sizecustom">{{#str}} sizecustom, tiny_media {{/str}}</label>
147
                                {{#isLink}}
148
                                    {{#linkcustomsizehelpicon}}
149
                                        {{> core/help_icon }}
150
                                    {{/linkcustomsizehelpicon}}
151
                                {{/isLink}}
152
                                {{^isLink}}
153
                                    {{#customsizehelpicon}}
154
                                        {{> core/help_icon }}
155
                                    {{/customsizehelpicon}}
156
                                {{/isLink}}
157
                            </div>
158
                            <div class="form-check mt-2 tiny_media_properties">
159
                                <div class="d-flex justify-content-start">
160
                                    <div class="me-2">
161
                                        <div class="mb-0">
162
                                            <input
163
                                                type="number"
164
                                                min="0"
165
                                                class="tiny_media_width_entry form-control me-1 input-mini"
166
                                                id="{{elementid}}_tiny_media_width_entry"
167
                                                value="{{media.width}}"
168
                                                placeholder="1200"
169
                                            >
170
                                            <label for="{{elementid}}_tiny_media_width_entry" class="ms-1">{{#str}} width, tiny_media {{/str}}</label>
171
                                        </div>
172
                                    </div>
173
                                    <div class="me-1 mt-2">X</div>
174
                                    <div class="me-1">
175
                                        <div class="mb-0">
176
                                            <input
177
                                                type="number"
178
                                                min="0"
179
                                                placeholder="800"
180
                                                class="tiny_media_height_entry form-control ms-1 input-mini"
181
                                                id="{{elementid}}_tiny_media_height_entry"
182
                                                value="{{media.height}}"
183
                                            >
184
                                            <label for="{{elementid}}_tiny_media_height_entry" class="ms-1">{{#str}} height, tiny_media {{/str}}</label>
185
                                        </div>
186
                                    </div>
187
                                </div>
188
                            </div>
189
                        </div>
190
                    {{/isVideo}}
191
                {{/showControl}}
192
            </div>
193
        </div>
194
    </div>
195
</div>
196
 
197
<div id="tiny-media-subtitle-caption-body" class="d-none">
198
    <div class="container">
199
        {{> tiny_media/embed/insert_media_subtitle_caption }}
200
    </div>
201
</div>