From d75f1c9f4d9ba3af9e4281fe03a6b856b5172fd9 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Tue, 4 Oct 2016 09:53:03 -0300 Subject: [PATCH] Fix #627 --- sapl/sessao/views.py | 18 ++++++++++++++++++ sapl/templates/sessao/resumo.html | 6 ++++++ 2 files changed, 24 insertions(+) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 1a5c446de..206c0f044 100644 --- a/sapl/sessao/views.py +++ b/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 (%s)' % ( + _('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 (%s)' % ( + _('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 (%s)' % ( + _('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() diff --git a/sapl/templates/sessao/resumo.html b/sapl/templates/sessao/resumo.html index 607064358..89aaa4424 100644 --- a/sapl/templates/sessao/resumo.html +++ b/sapl/templates/sessao/resumo.html @@ -2,6 +2,12 @@ {% load i18n %} {% load crispy_forms_tags %} +{% block title %} +

+ Resumo ({{sessaoplenaria}}) +

+{% endblock %} + {% block detail_content %}
Identificação Básica