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_insert
|
|
|
19 |
|
|
|
20 |
Insert image body template.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"showdropzone": true,
|
|
|
25 |
"showfilepicker": true
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
}}
|
|
|
29 |
<div class="tiny_image_insert_image">
|
|
|
30 |
<div class="tiny_image_dropzone d-flex flex-column justify-content-center">
|
|
|
31 |
{{#showdropzone}}
|
|
|
32 |
<div class="tiny_image_dropzone_container"></div>
|
|
|
33 |
<!-- File input -->
|
|
|
34 |
<input type="file" id="tiny_image_fileinput" accept="image/*" class="d-none">
|
|
|
35 |
{{/showdropzone}}
|
|
|
36 |
{{^showdropzone}}
|
|
|
37 |
<div class="text-center">
|
|
|
38 |
<!-- Dropzone icon -->
|
|
|
39 |
<i class="fa-6x pb-2 text-secondary fa fa-cloud"></i>
|
|
|
40 |
<!-- Dropzone string -->
|
|
|
41 |
<div class="lead text-center">
|
|
|
42 |
<p class="mb-0">
|
|
|
43 |
{{#showfilepicker}}
|
|
|
44 |
{{#str}} repositoryuploadnotpermitted, tiny_media {{/str}}</p>
|
|
|
45 |
{{/showfilepicker}}
|
|
|
46 |
{{^showfilepicker}}
|
|
|
47 |
{{#str}} repositorynotpermitted, tiny_media {{/str}}
|
|
|
48 |
{{/showfilepicker}}
|
|
|
49 |
</div>
|
|
|
50 |
</div>
|
|
|
51 |
{{/showdropzone}}
|
|
|
52 |
</div>
|
|
|
53 |
</div>
|