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_footer
|
|
|
19 |
|
|
|
20 |
Insert image footer template.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
"showdropzone": true,
|
|
|
25 |
"elementid": "exampleId",
|
|
|
26 |
"src": "https://moodle.org/logo.png",
|
|
|
27 |
"showfilepicker": true
|
|
|
28 |
}
|
|
|
29 |
|
|
|
30 |
}}
|
|
|
31 |
<div class="row">
|
|
|
32 |
<!-- First Column -->
|
|
|
33 |
<div class="col-md-6 d-flex align-items-center p-0">
|
|
|
34 |
<!-- Row 1: URL related label -->
|
|
|
35 |
{{#showdropzone}}
|
|
|
36 |
<label for="{{elementid}}_tiny_image_urlentry" class="tiny_image_url_label mr-1">{{#str}} enterurlor, tiny_media {{/str}}</label>
|
|
|
37 |
{{/showdropzone}}
|
|
|
38 |
{{^showdropzone}}
|
|
|
39 |
<label for="{{elementid}}_tiny_image_urlentry" class="tiny_image_url_label mr-1">{{#str}} enterurl, tiny_media {{/str}}</label>
|
|
|
40 |
{{/showdropzone}}
|
|
|
41 |
<!-- Row 2: URL entry input. Needed by the insert image step and image details step if the image URL source from external -->
|
|
|
42 |
<input name="urlentry" class="tiny_image_urlentry form-control w-50 mr-1" type="url" id="{{elementid}}_tiny_image_urlentry" size="32" value="{{src}}">
|
|
|
43 |
<!-- Row 3: Add button. Needed by the insert image step -->
|
|
|
44 |
<button disabled class="tiny_image_addurl btn btn-secondary mr-1" type="button">{{#str}} addurl, tiny_media {{/str}}</button>
|
|
|
45 |
</div>
|
|
|
46 |
<!-- Column 2: Saving, canceling, browsing repositories buttons -->
|
|
|
47 |
<div class="col-md-6 text-right mt-2 md-0 p-0">
|
|
|
48 |
<!-- Row 1: Cancel button -->
|
|
|
49 |
<button type="button" class="btn btn-secondary" data-action="cancel">{{#str}} cancel, moodle {{/str}}</button>
|
|
|
50 |
{{#showfilepicker}}
|
|
|
51 |
<!-- Row 3: Browse repositories button -->
|
|
|
52 |
<button class="openimagebrowser btn btn-secondary" type="button">{{#str}} browserepositoriesimage, tiny_media {{/str}}</button>
|
|
|
53 |
{{/showfilepicker}}
|
|
|
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
|