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/insert_media_body
19
 
20
    Insert media body template.
21
 
22
    Example context (json):
23
    {
24
        "showDropzone": true,
25
        "showFilePicker": true
26
    }
27
 
28
}}
29
<div class="tiny_media_insert_media" id="tiny-insert-media">
30
    <div class="d-flex flex-column justify-content-center">
31
        {{#showDropzone}}
32
            <div class="tiny_media_dropzone_container"></div>
33
        {{/showDropzone}}
34
        {{^showDropzone}}
35
            <div class="text-center">
36
                <i class="fa-6x pb-2 text-secondary fa fa-cloud"></i>
37
                <div class="lead text-center">
38
                    <p class="mb-0">
39
                        {{#showFilePicker}}
40
                            {{#str}} nofilepicker, tiny_media {{/str}}
41
                        {{/showFilePicker}}
42
                        {{^showFilePicker}}
43
                            {{#str}} nofilepickerrepository, tiny_media, {{fileType}} {{/str}}
44
                        {{/showFilePicker}}
45
                    </p>
46
                </div>
47
            </div>
48
        {{/showDropzone}}
49
    </div>
50
</div>