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/import_view
19
 
20
    This template renders the import recordings page.
21
 
22
    Example context (json):
23
    {
24
        "bbbid": 3,
25
        "has_selected_course": 0,
26
        "back_button": {
27
            "method" : "get",
28
            "url" : "#",
29
            "primary" : 1,
30
            "tooltip" : "This is a tooltip",
31
            "label" : "This is a the button text",
32
            "id": "thisismybutton",
33
            "attributes": [{
34
                "name": "data-attribute",
35
                "value": "yeah"
36
            }]
37
        }
38
    }
39
}}
40
 
41
<div class="mod_bigbluebuttonbn_import_view">
42
    <div class="d-flex flex-row">
43
        <div>
44
            <span class="p-1">{{#str}}view_recording_list_course, mod_bigbluebuttonbn{{/str}}</span>
45
            {{#course_select}}
46
                {{>core/single_select}}
47
            {{/course_select}}
48
        </div>
49
        <div>
50
            {{#bbb_select}}
51
                <span class="p-1">{{#str}}view_recording_activity, mod_bigbluebuttonbn{{/str}}</span>
52
                {{>core/single_select}}
53
            {{/bbb_select}}
54
        </div>
55
    </div>
56
    {{#has_selected_course}}
57
        {{< mod_bigbluebuttonbn/recordings_table}}
58
            {{$title}}{{#str}} view_recording_button_import, mod_bigbluebuttonbn {{/str}}{{/title}}
59
            {{$tools}}import{{/tools}}
60
            {{$removeimportedid}}{{bbboriginid}}{{/removeimportedid}}
61
            {{$otherattributes}} {{!
62
            }} id="bigbluebuttonbn-recording-table-{{uniqid}}" {{!
63
            }} data-import-mode="1" {{!
64
            }} data-bbb-source-course-id="{{sourcecourseid}}" {{!
65
            }} data-bbb-source-instance-id="{{bbbsourceid}}" {{!
66
            }} {{/otherattributes}}
67
        {{/mod_bigbluebuttonbn/recordings_table}}
68
    {{/has_selected_course}}
69
    {{^has_selected_course}}
70
        <span class="text-warning">{{#str}} view_recording_select_course, mod_bigbluebuttonbn {{/str}}</span>
71
    {{/has_selected_course}}
72
    <div class="mt-3">
73
        {{#back_button}}
74
            {{>core/single_button}}
75
        {{/back_button}}
76
    </div>
77
</div>