Browse Source

Fix #627

pull/691/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
d75f1c9f4d
  1. 18
      sapl/sessao/views.py
  2. 6
      sapl/templates/sessao/resumo.html

18
sapl/sessao/views.py

@ -456,6 +456,12 @@ class PresencaView(FormMixin, PresencaMixin, DetailView):
form_class = PresencaForm
model = SessaoPlenaria
def get_context_data(self, **kwargs):
context = FormMixin.get_context_data(self, **kwargs)
context['title'] = '%s <small>(%s)</small>' % (
_('Presença'), self.object)
return context
@method_decorator(permission_required_for_app(AppConfig.label))
def post(self, request, *args, **kwargs):
self.object = self.get_object()
@ -528,6 +534,12 @@ class PresencaOrdemDiaView(FormMixin, PresencaMixin, DetailView):
form_class = PresencaForm
model = SessaoPlenaria
def get_context_data(self, **kwargs):
context = FormMixin.get_context_data(self, **kwargs)
context['title'] = '%s <small>(%s)</small>' % (
_('Presença Ordem do Dia'), self.object)
return context
@method_decorator(permission_required_for_app(AppConfig.label))
def post(self, request, *args, **kwargs):
@ -954,6 +966,12 @@ class ExpedienteView(FormMixin, DetailView):
form_class = ExpedienteForm
model = SessaoPlenaria
def get_context_data(self, **kwargs):
context = FormMixin.get_context_data(self, **kwargs)
context['title'] = '%s <small>(%s)</small>' % (
_('Expediente Diversos'), self.object)
return context
@method_decorator(permission_required_for_app(AppConfig.label))
def post(self, request, *args, **kwargs):
self.object = self.get_object()

6
sapl/templates/sessao/resumo.html

@ -2,6 +2,12 @@
{% load i18n %}
{% load crispy_forms_tags %}
{% block title %}
<h1 class="page-header">
Resumo <small>({{sessaoplenaria}})</small>
</h1>
{% endblock %}
{% block detail_content %}
<fieldset>
<legend>Identificação Básica</legend>

Loading…
Cancel
Save