Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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/insert_image_modal
19
 
20
    Insert image template.
21
 
22
    Example context (json):
23
    {
24
        "uniqid": 0,
25
        "elementid": "exampleId",
26
        "loading": {},
27
        "title": "Insert image"
28
    }
29
}}
30
{{< core/modal }}
31
    {{$body}}
32
        <form class="tiny_image_form">
33
            <!-- URL warning -->
34
            <div role="alert" class="d-none alert alert-warning mb-1 tiny_image_urlwarning">
35
                <label>
36
                    {{#str}} imageurlrequired, tiny_media {{/str}}
37
                </label>
38
            </div>
39
            <!-- Presentation warning -->
40
            <div role="alert" class="d-none tiny_image_altwarning alert alert-warning mb-1">
41
                <label>
42
                    {{#str}} presentationoraltrequired, tiny_media {{/str}}
43
                </label>
44
            </div>
45
            <!-- Preloader icon -->
46
            <div role="progressbar" class="d-none tiny_image_loader lead border rounded text-center">
47
                <div class="tiny_image_loader_container d-flex flex-column justify-content-center">
48
                    <span data-region="loading-icon-container">
49
                        {{> core/loading }}
50
                    </span>
51
                    <div>{{#str}} loading, tiny_media {{/str}}</div>
52
                </div>
53
            </div>
54
            <div class="tiny_image_body_template"></div>
55
        </form>
56
    {{/body}}
57
 
58
    {{$footer}}
59
        <div class="tiny_image_footer_template container"></div>
60
    {{/footer}}
61
{{/ core/modal }}