diff --git a/sapl/painel/views.py b/sapl/painel/views.py index 454b61d8e..474fddcdd 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -84,6 +84,7 @@ def votacao_aberta(request): def votante_view(request): # Pega o votante relacionado ao usuário + template_name = 'painel/voto_nominal.html' try: votante = Votante.objects.get(user=request.user) except ObjectDoesNotExist: @@ -220,7 +221,7 @@ def votante_view(request): return HttpResponseRedirect( reverse('sapl.painel:voto_individual')) - return render(request, 'painel/voto_nominal.html', context) + return render(request, template_name, context) @user_passes_test(check_permission) diff --git a/sapl/templates/painel/voto_nominal.html b/sapl/templates/painel/voto_nominal.html index 66d090da9..478fe16ec 100644 --- a/sapl/templates/painel/voto_nominal.html +++ b/sapl/templates/painel/voto_nominal.html @@ -11,6 +11,10 @@ - {% if not error_message %} -
+ + + {% if not error_message %} +{{sessao}}
Hora Início: {{hora}} | -Data Início: {{data}} | +Data Início: {{data}} | +Hora Início: {{hora}} |
---|
{{error_message}}
{{error_message}}