|
|
@ -6,48 +6,54 @@ |
|
|
<h2 class="page-header">Sistema de Deliberação Remota (SDR)</h2> |
|
|
<h2 class="page-header">Sistema de Deliberação Remota (SDR)</h2> |
|
|
{% endblock %} |
|
|
{% endblock %} |
|
|
|
|
|
|
|
|
{% block base_content %}{{block.super}} |
|
|
{% block base_content %} |
|
|
|
|
|
{{ block.super }} |
|
|
<div id="content"> |
|
|
<div id="content"> |
|
|
<h3>Título: {{ object.titulo }}<br/></h3> |
|
|
<h3>Título: {{ object.titulo }}<br/></h3> |
|
|
<h3>Descrição: {{ object.descricao }}<br/></h3> |
|
|
<h3>Descrição: {{ object.descricao }}<br/></h3> |
|
|
<h5>ID: {{ object.chat_id }}</h5><br/> |
|
|
<h5>ID: {{ object.chat_id }}</h5><br/> |
|
|
{% if is_parlamentar %} |
|
|
{% if is_parlamentar %} |
|
|
<h4>Parlamentar: {{ parlamentar.nome_parlamentar }}</h4> |
|
|
<h4>Parlamentar: {{ parlamentar.nome_parlamentar }}</h4><br/> |
|
|
{% else %} |
|
|
{% else %} |
|
|
<h4>Nome: {{ nome_usuario }}</h4> |
|
|
<h4>Usuário: {{ nome_usuario }}</h4><br/> |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="container"> |
|
|
<div class="container"> |
|
|
<div id="meet" class="col-md"></div> |
|
|
<div id="meet" class="col-md"></div> |
|
|
<div id="painel" class="col-md"> |
|
|
<div id="painel" class="col-md"> |
|
|
<h3>Dados Básicos</h3> |
|
|
<div class="row"> |
|
|
Sessão: {{ sessao_plenaria }} <br/> |
|
|
<div class="sm-6" style="margin-right:60px"> |
|
|
Data Início: {{ sessao_plenaria.data_inicio }} <br/> |
|
|
<br/><h3>Dados Básicos</h3> |
|
|
Hora Início: {{ sessao_plenaria.hora_inicio }} <br/> |
|
|
Sessão: {{ object.sessao_plenaria }} <br/> |
|
|
Iniciada: {{ sessao_plenaria.iniciada|yesno:"Sim,Não" }} <br/> |
|
|
Data Início: {{ object.sessao_plenaria.data_inicio }} <br/> |
|
|
<br/> |
|
|
Hora Início: {{ object.sessao_plenaria.hora_inicio }} <br/> |
|
|
|
|
|
Iniciada: {{ object.sessao_plenaria.iniciada|yesno:"Sim,Não" }} <br/> |
|
|
<br/> |
|
|
<br/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
<!-- TODO: pegar de REST WS --> |
|
|
<!-- TODO: pegar de REST WS --> |
|
|
<div class="row"> |
|
|
<div class="row"> |
|
|
<div class="sm-5" style="margin-right:60px"> |
|
|
<div class="sm-5" style="margin-right:60px"> |
|
|
<h3>Presença Sessão Plenária</h3> |
|
|
<h3>Presença Sessão Plenária</h3> |
|
|
<ul> |
|
|
<ul> |
|
|
{% for p in sessao_plenaria.sessaoplenariapresenca_set.all %} |
|
|
{% for p in object.sessao_plenaria.sessaoplenariapresenca_set.all %} |
|
|
<li>{{p.parlamentar}}</li> |
|
|
<li>{{ p.parlamentar }}</li> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
<br/> |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
<div class="sm-5" style="margin-right:60px"> |
|
|
<div class="sm-5" style="margin-right:60px"> |
|
|
<h3>Presentes Ordem do Dia:</h3> |
|
|
<h3>Presentes Ordem do Dia:</h3> |
|
|
<ul> |
|
|
<ul> |
|
|
{% for p in sessao_plenaria.presencaordemdia_set.all %} |
|
|
{% for p in object.sessao_plenaria.presencaordemdia_set.all %} |
|
|
<li>{{p.parlamentar}}</li> |
|
|
<li>{{ p.parlamentar }}</li> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
<br/> |
|
|
</ul> |
|
|
</ul> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
{% endblock base_content %} |
|
|
{% endblock base_content %} |
|
|
|
|
|
|
|
|
{% block extra_js %} |
|
|
{% block extra_js %} |
|
|
@ -56,20 +62,29 @@ |
|
|
<script language="Javascript"> |
|
|
<script language="Javascript"> |
|
|
api = undefined; |
|
|
api = undefined; |
|
|
$(document).ready(function() { |
|
|
$(document).ready(function() { |
|
|
const domain = 'jitsih.interlegis.leg.br'; |
|
|
const domain = 'meet.jit.si'; |
|
|
const options= { |
|
|
const options= { |
|
|
roomName: '{{object.chat_id}}', |
|
|
roomName: '{{ object.chat_id }}', |
|
|
width: 700, |
|
|
// width: 700, |
|
|
height: 700, |
|
|
height: 700, |
|
|
|
|
|
configOverwrite: { defaultLanguage: 'ptBR' }, |
|
|
parentNode: document.querySelector('#meet'), |
|
|
parentNode: document.querySelector('#meet'), |
|
|
interfaceConfigOverwrite: {TOOLBAR_BUTTONS: ['hangup','microphone', 'camera']} |
|
|
interfaceConfigOverwrite: {TOOLBAR_BUTTONS: [ |
|
|
|
|
|
'microphone', 'camera', 'hangup', 'chat', 'recording', 'livestreaming', 'raisehand', |
|
|
|
|
|
'videoquality', 'shortcuts', 'tileview' |
|
|
|
|
|
]} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
api = new JitsiMeetExternalAPI(domain, options); |
|
|
api = new JitsiMeetExternalAPI(domain, options); |
|
|
api.executeCommand('displayName', '{{nome_usuario}}'); |
|
|
|
|
|
api.executeCommand('toggleTileView'); |
|
|
api.executeCommand('toggleTileView'); |
|
|
api.executeCommand('subject', '{{object.titulo}}'); |
|
|
// api.executeCommand('toggleChat'); |
|
|
// api.executeCommand('password', '12345'); |
|
|
api.executeCommand('subject', '{{ object.titulo }}'); |
|
|
//api.executeCommand('toggleChat'); |
|
|
api.executeCommand('displayName', '{{ nome_usuario }}'); |
|
|
|
|
|
|
|
|
|
|
|
// api.addEventListener('videoConferenceJoined', (response) => { |
|
|
|
|
|
// api.executeCommand('password', {{ password }}); |
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
|
api.on('readyToClose', () => { |
|
|
api.on('readyToClose', () => { |
|
|
console.log('Closed session'); |
|
|
console.log('Closed session'); |
|
|
|