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 mod_zoom/mobile_view_page_ionic3
19
 
20
    Page to view a zoom meeting
21
 
22
    Classes required for JS:
23
    * none
24
 
25
    Data attributes required for JS:
26
    * none
27
 
28
    Example context (json):
29
    {
30
        "zoom": {
31
            "intro": "Introduction String",
32
            "password": "9836451",
33
            "recurring": 1,
34
            "webinar": 1,
35
            "option_host_video": 1,
36
            "option_jbh": 1,
37
            "option_participants_video": 1
38
        },
39
        "available": true,
40
        "status": "Finished",
41
        "start_time": "Tuesday, June 29, 2021, 1:30 PM",
42
        "duration": "1 hour",
43
        "option_audio": "Computer audio and Telephone",
44
        "cmid": 3,
45
        "courseid": 3
46
    }
47
}}
48
{{=<% %>=}}
49
<div>
50
    <core-course-module-description description="<% zoom.intro %>" component="mod_zoom" componentId="<% cmid %>"></core-course-module-description>
51
 
52
    <ion-list>
53
        <%#available%>
54
            <ion-item>
55
                <button ion-button block color="light" core-site-plugins-call-ws name="mod_zoom_grade_item_update" [params]="{zoomid: <% cmid %>}" [preSets]="{getFromCache: 0, saveToCache: 0}" (onSuccess)="loadMeeting($event)">
56
                    {{ 'plugin.mod_zoom.join_meeting' | translate }}
57
                </button>
58
            </ion-item>
59
        <%/available%>
60
        <%^available%>
61
            <ion-item>
62
                <p>{{ 'plugin.mod_zoom.unavailable' | translate }}</p>
63
            </ion-item>
64
        <%/available%>
65
 
66
        <%#zoom.recurring%>
67
            <ion-item>
68
                <p class="item-heading">{{ 'plugin.mod_zoom.recurringmeetinglong' | translate }}</p>
69
            </ion-item>
70
        <%/zoom.recurring%>
71
        <%^zoom.recurring%>
72
            <ion-item>
73
                <p class="item-heading">{{ 'plugin.mod_zoom.meeting_time' | translate }}</p>
74
                <p><% start_time %></p>
75
            </ion-item>
76
            <ion-item>
77
                <p class="item-heading">{{ 'plugin.mod_zoom.duration' | translate }}</p>
78
                <p><% duration %></p>
79
            </ion-item>
80
        <%/zoom.recurring%>
81
 
82
        <ion-item>
83
            <p class="item-heading">{{ 'plugin.mod_zoom.passwordprotected' | translate }}</p>
84
            <%#zoom.password%><p>{{ 'core.yes' | translate }}</p><%/zoom.password%>
85
            <%^zoom.password%><p>{{ 'core.no' | translate }}</p><%/zoom.password%>
86
        </ion-item>
87
 
88
        <%^zoom.webinar%>
89
            <ion-item>
90
                <p class="item-heading">{{ 'plugin.mod_zoom.joinbeforehost' | translate }}</p>
91
                <%#zoom.option_jbh%><p>{{ 'core.yes' | translate }}</p><%/zoom.option_jbh%>
92
                <%^zoom.option_jbh%><p>{{ 'core.no' | translate }}</p><%/zoom.option_jbh%>
93
            </ion-item>
94
            <ion-item>
95
                <p class="item-heading">{{ 'plugin.mod_zoom.starthostjoins' | translate }}</p>
96
                <%#zoom.option_host_video%><p>{{ 'core.yes' | translate }}</p><%/zoom.option_host_video%>
97
                <%^zoom.option_host_video%><p>{{ 'core.no' | translate }}</p><%/zoom.option_host_video%>
98
            </ion-item>
99
            <ion-item>
100
                <p class="item-heading">{{ 'plugin.mod_zoom.startpartjoins' | translate }}</p>
101
                <%#zoom.option_participants_video%><p>{{ 'core.yes' | translate }}</p><%/zoom.option_participants_video%>
102
                <%^zoom.option_participants_video%><p>{{ 'core.no' | translate }}</p><%/zoom.option_participants_video%>
103
            </ion-item>
104
        <%/zoom.webinar%>
105
 
106
        <ion-item>
107
            <p class="item-heading">{{ 'plugin.mod_zoom.option_audio' | translate }}</p>
108
            <p><% option_audio %></p>
109
        </ion-item>
110
 
111
        <%^zoom.recurring%>
112
            <ion-item>
113
                <p class="item-heading">{{ 'plugin.mod_zoom.status' | translate }}</p>
114
                <p><% status %></p>
115
            </ion-item>
116
        <%/zoom.recurring%>
117
    </ion-list>
118
</div>