From fcd04e37cab0028fdf7cf3e7bb446f01b69784a7 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 21 Sep 2015 15:00:38 -0300 Subject: [PATCH] Change links in Painel --- painel/urls.py | 4 +- painel/views.py | 4 ++ templates/painel/index.html | 6 +- templates/painel/mensagem.html | 108 ++++++++++++++++++++++++++++ templates/painel/parlamentares.html | 96 ++++++++++++++++++++----- templates/painel/votacao.html | 97 ++++++++++++++++++++----- templates/sessao/painel.html | 11 +-- 7 files changed, 285 insertions(+), 41 deletions(-) create mode 100644 templates/painel/mensagem.html diff --git a/painel/urls.py b/painel/urls.py index 77e9b7596..5729ce980 100644 --- a/painel/urls.py +++ b/painel/urls.py @@ -1,13 +1,15 @@ from django.conf.urls import include, url from .views import (controlador_painel, cronometro_painel_crud, json_presenca, - json_votacao, painel_parlamentares_view, painel_view, + json_votacao, paienl_mensagem_view, + painel_parlamentares_view, painel_view, painel_votacao_view) urlpatterns = [ url(r'^sistema/painel$', painel_view), url(r'^sistema/painel/controlador', controlador_painel, name='controlador_painel'), + url(r'^sistema/painel/mensagem', paienl_mensagem_view), url(r'^sistema/painel/parlamentares', painel_parlamentares_view), url(r'^sistema/painel/votacao', painel_votacao_view), url(r'^sistema/painel/json_presenca', json_presenca, name='json_presenca'), diff --git a/painel/views.py b/painel/views.py index a715565f1..e51e60a84 100644 --- a/painel/views.py +++ b/painel/views.py @@ -57,6 +57,10 @@ def painel_view(request): return render(request, 'painel/index.html', {'context': context}) +def paienl_mensagem_view(request): + return render(request, 'painel/mensagem.html') + + def painel_parlamentares_view(request): return render(request, 'painel/parlamentares.html') diff --git a/templates/painel/index.html b/templates/painel/index.html index 78743a80e..4b4885f23 100644 --- a/templates/painel/index.html +++ b/templates/painel/index.html @@ -97,9 +97,9 @@

Ajax refresh counter:

-
-
-
+

+

+

diff --git a/templates/painel/mensagem.html b/templates/painel/mensagem.html new file mode 100644 index 000000000..4d2ec9cbc --- /dev/null +++ b/templates/painel/mensagem.html @@ -0,0 +1,108 @@ +{% load i18n %} +{% load staticfiles %} + + + + + + + + + + {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} + + + + + + + + +

{{ context.title }}

+ +

Ajax refresh counter:

+

+

+

+

+




+
+ + + + diff --git a/templates/painel/parlamentares.html b/templates/painel/parlamentares.html index 6f046d0d8..a182c40aa 100644 --- a/templates/painel/parlamentares.html +++ b/templates/painel/parlamentares.html @@ -1,15 +1,17 @@ +{% load i18n %} +{% load staticfiles %} - + + + + + - Painel jQuery - - - - - - - + + {% block head_title %}{% trans 'SAPL - Sistema de Apoio ao Processo Legislativo' %}{% endblock %} + +