Add admin view for BBB plugin - refs BT#11636

pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent aac43f9a82
commit 6707acaeee
  1. 4
      plugin/bbb/admin.php
  2. 12
      plugin/bbb/admin.tpl

@ -17,7 +17,9 @@ $plugin = BBBPlugin::create();
$tool_name = $plugin->get_lang('Videoconference');
$tpl = new Template($tool_name);
$bbb = new bbb('', '');
$isGlobal = isset($_GET['global']) ? true : false;
$bbb = new bbb('', '', $isGlobal);
$action = isset($_GET['action']) ? $_GET['action'] : null;
$meetings = $bbb->getMeetings();

@ -7,6 +7,7 @@
<th>{{ 'Course'|get_lang }}</th>
<th>{{ 'Session'|get_lang }}</th>
<th>{{ 'Participants'|get_lang }}</th>
<th>{{ 'Actions'|get_lang }}</th>
</tr>
</thead>
<tbody>
@ -30,10 +31,15 @@
{{ meeting.show_links }}
{% endif %}
</td>
<td>{{ meeting.course ?: '-' }}</td>
<td>{{ meeting.session ?: '-' }}</td>
<td>{{ meeting.course ? meeting.course.title : '-' }}</td>
<td>{{ meeting.session ? meeting.session.name : '-' }}</td>
<td>{{ meeting.participants ? meeting.participants|join('<br>') : '-' }}</td>
<td>
{{ meeting.participants ? meeting.participants|join('<br>') : '-' }}
{% if meeting.status == 1 %}
<a class="btn btn-default" href="{{ meeting.end_url }} "> {{ 'CloseMeeting'|get_lang }}</a>
{% else %}
{{ meeting.action_links }}
{% endif %}
</td>
</tr>
{% endfor %}

Loading…
Cancel
Save