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/embed_media_modal
|
|
|
19 |
|
|
|
20 |
Embed media modal template.
|
|
|
21 |
|
|
|
22 |
Example context (json):
|
|
|
23 |
{
|
|
|
24 |
|
|
|
25 |
}
|
|
|
26 |
}}
|
|
|
27 |
{{< core/modal }}
|
|
|
28 |
|
|
|
29 |
{{$title}}
|
|
|
30 |
{{#str}} modaltitle, tiny_h5p {{/str}}
|
|
|
31 |
{{/title}}
|
|
|
32 |
|
|
|
33 |
{{$body}}
|
|
|
34 |
<form class="tiny_media_form" id="{{elementid}}_tiny_media_form">
|
|
|
35 |
<ul class="root nav nav-tabs mb-1" role="tablist">
|
|
|
36 |
<li data-medium-type="link" class="nav-item">
|
|
|
37 |
<a class="nav-link {{# link }}active{{/ link }}" href="#{{elementid}}_link" role="tab" data-toggle="tab">
|
|
|
38 |
{{#str}} link, tiny_media {{/str}}
|
|
|
39 |
</a>
|
|
|
40 |
</li>
|
|
|
41 |
<li data-medium-type="video" class="nav-item">
|
|
|
42 |
<a class="nav-link {{# video }}active{{/ video }}" href="#{{elementid}}_video" role="tab" data-toggle="tab">
|
|
|
43 |
{{#str}} video, tiny_media {{/str}}
|
|
|
44 |
</a>
|
|
|
45 |
</li>
|
|
|
46 |
<li data-medium-type="audio" class="nav-item">
|
|
|
47 |
<a class="nav-link {{# audio }}active{{/ audio }}" href="#{{elementid}}_audio" role="tab" data-toggle="tab">
|
|
|
48 |
{{#str}} audio, tiny_media {{/str}}
|
|
|
49 |
</a>
|
|
|
50 |
</li>
|
|
|
51 |
</ul>
|
|
|
52 |
<div class="root tab-content">
|
|
|
53 |
<div data-medium-type="link" class="tab-pane {{# link }}active{{/ link }}" id="{{elementid}}_link">
|
|
|
54 |
{{> tiny_media/embed_media_modal_link }}
|
|
|
55 |
</div>
|
|
|
56 |
<div data-medium-type="video" class="tab-pane {{# video }}active{{/ video }}" id="{{elementid}}_video">
|
|
|
57 |
{{> tiny_media/embed_media_modal_video}}
|
|
|
58 |
</div>
|
|
|
59 |
<div data-medium-type="audio" class="tab-pane {{# audio }}active{{/ audio }}" id="{{elementid}}_audio">
|
|
|
60 |
{{> tiny_media/embed_media_modal_audio}}
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
|
|
63 |
</form>
|
|
|
64 |
{{/body}}
|
|
|
65 |
|
|
|
66 |
{{$footer}}
|
|
|
67 |
<button type="button" class="btn btn-primary" data-action="save">
|
|
|
68 |
{{#isupdating}}
|
|
|
69 |
{{#str}} updatemedia, tiny_media {{/str}}
|
|
|
70 |
{{/isupdating}}
|
|
|
71 |
{{^isupdating}}
|
|
|
72 |
{{#str}} createmedia, tiny_media {{/str}}
|
|
|
73 |
{{/isupdating}}
|
|
|
74 |
</button>
|
|
|
75 |
<button type="button" class="btn btn-secondary" data-action="cancel">{{#str}} cancel, moodle {{/str}}</button>
|
|
|
76 |
{{/footer}}
|
|
|
77 |
|
|
|
78 |
{{/ core/modal }}
|