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/footer/insert_media_footer
19
 
20
    Insert media footer template.
21
 
22
    Example context (json):
23
    {
24
        "elementid": "id",
25
        "isInsertThumbnail": false,
26
        "showDropzone": true,
27
        "showFilePicker": true,
28
        "showImageFilePicker": true
29
    }
30
 
31
}}
32
<div class="row">
33
    <div class="col-md-6 d-flex align-items-center p-0">
34
        {{#showDropzone}}
35
            <label for="{{elementid}}_tiny_media_from_url_entry" class="me-1">{{#str}} enterurlor, tiny_media {{/str}}</label>
36
        {{/showDropzone}}
37
        {{^showDropzone}}
38
            <label for="{{elementid}}_tiny_media_from_url_entry" class="me-1">{{#str}} enterurl, tiny_media {{/str}}</label>
39
        {{/showDropzone}}
40
        <input
41
            name="urlentry"
42
            class="tiny_media_from_url_entry form-control w-50 me-1"
43
            type="url"
44
            id="{{elementid}}_tiny_media_from_url_entry"
45
            size="32"
46
            value="{{src}}"
47
        >
48
        <button disabled class="tiny_media_add_url btn btn-secondary me-1" type="button">{{#str}} addurl, tiny_media {{/str}}</button>
49
    </div>
50
    <div class="col-md-6 text-end mt-2 mt-md-0 p-0">
51
        <button type="button" class="btn btn-secondary" data-action="cancel">{{#str}} cancel, moodle {{/str}}</button>
52
        {{#showFilePicker}}
53
            <button class="openmediabrowser btn btn-secondary" type="button">{{#str}} browseembedimagerepositories, tiny_media {{/str}}</button>
54
        {{/showFilePicker}}
55
        {{#showImageFilePicker}}
56
            <button class="openimagebrowser btn btn-secondary" type="button">{{#str}} browseembedimagerepositories, tiny_media {{/str}}</button>
57
        {{/showImageFilePicker}}
58
    </div>
59
</div>