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_bigbluebuttonbn/recordings_table
19
 
20
    This template renders the mobile page.
21
 
22
    Example context (json):
23
    {
24
        "bbbid" : 3,
25
        "has_records": true,
26
        "search_input": {}
27
    }
28
}}
29
<div class="mod_bigbluebuttonbn_recordings_table">
30
    {{#has_recordings}}
31
        <div>
32
            <h4>{{$title}}{{/title}}</h4>
33
        </div>
34
        <div class="mt-3">
35
            {{#recordingwarnings}}
36
                {{>core/notification}}
37
            {{/recordingwarnings}}
38
        </div>
39
        <div>
40
            {{#search}}
41
                {{>mod_bigbluebuttonbn/search_input_recordings}}
42
            {{/search}}
43
            <div {{!
44
                }} id="bigbluebuttonbn-recording-table-{{uniqid}}"{{!
45
                }} data-bbbid="{{bbbid}}"{{!
46
                }} data-tools="{{$tools}}protect,unprotect,publish,unpublish,delete{{/tools}}"{{!
47
                }} data-group-id="{{groupid}}"{{!
48
                }} {{$otherattributes}}{{/otherattributes}}{{!
49
            }}></div>
50
        </div>
51
    {{/has_recordings}}
52
    {{^has_recordings}}
53
        <div id="bigbluebuttonbn_recordings_table">{{#str}}view_message_norecordings, mod_bigbluebuttonbn{{/str}}</div>
54
        <div class="mt-3">
55
            {{#recordingwarnings}}
56
                {{>core/notification}}
57
            {{/recordingwarnings}}
58
        </div>
59
    {{/has_recordings}}
60
</div>
61
 
62
{{#has_recordings}}
63
    {{#js}}
64
        require(['mod_bigbluebuttonbn/recordings'], function(recordings) {
65
            recordings.init('#bigbluebuttonbn-recording-table-{{uniqid}}', '#searchform-auto-{{uniqid}}');
66
        });
67
        require(['core/inplace_editable']);
68
    {{/js}}
69
{{/has_recordings}}