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/breakoutrooms_rooms
19
 
20
    Context variables required for this template:
21
    * roomscount Number of rooms.
22
    * rooms Array of rooms.
23
    * roomtoclone Room that is being cloned.
24
 
25
    Example context (json):
26
    {
27
        "roomscount": 1,
28
        "rooms": [
29
            {
30
                "roomid": "1",
31
                "roomname": "room1",
32
                "roomactive": true,
33
                "courseparticipants": [
34
                    {
35
                        "participantid": "2",
36
                        "participantname": "John Doe",
37
                        "selected": true
38
                    }
39
                ],
40
                "coursegroups": [
41
                    {
42
                        "groupid": "3",
43
                        "groupname": "group3",
44
                        "selected": true
45
                    }
46
                ]
47
            }
48
        ],
49
        "roomtoclone": [
50
            {
51
                "toclone": "toclone",
52
                "courseparticipants": [
53
                    {
54
                        "participantid": "2",
55
                        "participantname": "John Doe"
56
                    }
57
                ],
58
                "coursegroups": [
59
                    {
60
                        "groupid": "3",
61
                        "groupname": "group3"
62
                    }
63
                ]
64
            }
65
        ]
66
    }
67
}}
68
<table id="mod-zoom-breakout-rooms-table" class="table table-bordered">
69
  <tr>
70
    <td>
71
      <div id="mod-zoom-meeting-rooms-list" data-initial-rooms-count="{{roomscount}}">
72
        <div class="mb-2">
73
          <span>{{#str}} rooms, zoom {{/str}}</span>
74
          <button id="add-room" type="button" title="{{#str}} addroom, zoom {{/str}}" class="btn btn-default btn-sm">
75
            <span class="fa fa-plus-circle fa-lg" aria-hidden="true"></span>
76
          </button>
77
        </div>
78
        <ul class="nav nav-pills flex-column" role="tablist">
79
          {{#rooms}}
80
          <li id="tab-{{roomid}}" class="nav-item">
81
            <a class="nav-link {{#roomactive}}active{{/roomactive}}" href="#link{{roomid}}" data-toggle="tab" role="tab">
82
              <span class="tab-name">{{roomname}}</span>
83
            </a>
84
            <button type="button" class="pull-right delete-room" title="{{#str}} deleteroom, zoom {{/str}}">
85
              <span class="fa fa-trash-o fa-lg" aria-hidden="true"></span>
86
            </button>
87
          </li>
88
          {{/rooms}}
89
        </ul>
90
        <div class="empty-alert text-center hidden">
91
          <p><strong>{{#str}} norooms, zoom {{/str}}</strong></p>
92
          <span>
93
            {{#str}} addroomalert, zoom {{/str}}
94
            <span class="fa fa-plus-circle" aria-hidden="true"></span>
95
          </span>
96
        </div>
97
      </div>
98
    </td>
99
    <td>
100
      <div id="mod-zoom-meeting-rooms-data">
101
        <div class="tab-content">
102
          {{#rooms}}
103
          <div class="tab-pane {{#roomactive}}active{{/roomactive}}" id="link{{roomid}}" role="tabpanel">
104
              {{> zoom/breakoutrooms_room_data }}
105
          </div>
106
          {{/rooms}}
107
        </div>
108
      </div>
109
    </td>
110
  </tr>
111
</table>
112
 
113
{{#roomtoclone}}
114
{{> zoom/breakoutrooms_room_datatoclone }}
115
{{/roomtoclone}}