Browse Source
Merge branch '3.1.x' into 2631-filtra-lista-anexar-lote
pull/2654/head
Edward
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
3 deletions
-
sapl/sessao/views.py
-
sapl/templates/sessao/ocorrencia_sessao.html
|
|
|
@ -1858,6 +1858,12 @@ class OcorrenciaSessaoView(FormMixin, DetailView): |
|
|
|
|
|
|
|
logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
def get_context_data(self, **kwargs): |
|
|
|
context = FormMixin.get_context_data(self, **kwargs) |
|
|
|
context['title'] = 'Ocorrências da Sessão <small>(%s)</small>' % ( |
|
|
|
self.object) |
|
|
|
return context |
|
|
|
|
|
|
|
def delete(self): |
|
|
|
OcorrenciaSessao.objects.filter(sessao_plenaria=self.object).delete() |
|
|
|
|
|
|
|
|
|
|
|
@ -4,9 +4,6 @@ |
|
|
|
{% load common_tags %} |
|
|
|
|
|
|
|
{% block actions %}{% endblock %} |
|
|
|
|
|
|
|
{% block title %}<font size="6" face="SourceSansProSemiBold" color="#364347" >Ocorrências da Sessão </font> <b><small><font face="SourceSansProSemiBold" size="5" color="#93a4aa"> ({{ object }}) </font> </small></b>{% endblock %} |
|
|
|
|
|
|
|
{% block detail_content %} |
|
|
|
{% if perms|get_add_perm:view %} |
|
|
|
<form method="post" accept-charset="ISO-8859-1"> |
|
|
|
|