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 %} +