Browse Source

Adiciona titulo ao painel

pull/691/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
e5c55dabc5
  1. 3
      sapl/sessao/views.py
  2. 8
      sapl/templates/sessao/painel.html

3
sapl/sessao/views.py

@ -525,7 +525,8 @@ class PainelView(PermissionRequiredForAppCrudMixin, TemplateView):
context.update({
'head_title': str(_('Painel Plenário')),
'sessao_id': kwargs['pk'],
'root_pk': kwargs['pk']})
'root_pk': kwargs['pk'],
'sessaoplenaria': SessaoPlenaria.objects.get(pk=kwargs['pk'])})
return context

8
sapl/templates/sessao/painel.html

@ -2,6 +2,14 @@
{% load i18n %}
{% load staticfiles %}
{% block actions %} {% endblock %}
{% block title %}
<h1 class="page-header">
Painel Eletrônico <small>({{sessaoplenaria}})</small>
</h1>
{% endblock %}
{% block detail_content %}
<audio type="hidden" id="audio" src="{% static 'audio/ring.mp3' %}"> </audio>

Loading…
Cancel
Save