From cc199807ecbe987c0e96c6867a9c91db7f1d9650 Mon Sep 17 00:00:00 2001 From: Breno Teixeira Date: Wed, 23 Apr 2014 16:06:44 -0300 Subject: [PATCH] =?UTF-8?q?Permitindo=20a=20visualiza=C3=A7=C3=A3o=20dos?= =?UTF-8?q?=20graficos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/admin/forms/entries.html | 17 +++++++---- .../pesquisas/templates/pesquisas/chart.html | 28 +++++++++++++++++++ sigi/apps/pesquisas/views.py | 2 +- sigi/urls.py | 2 ++ 4 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 sigi/apps/pesquisas/templates/pesquisas/chart.html diff --git a/sigi/apps/pesquisas/templates/admin/forms/entries.html b/sigi/apps/pesquisas/templates/admin/forms/entries.html index 2513372..766b9d5 100644 --- a/sigi/apps/pesquisas/templates/admin/forms/entries.html +++ b/sigi/apps/pesquisas/templates/admin/forms/entries.html @@ -26,6 +26,7 @@ td.include, th.include-all, td.include-all {text-align:center; width:10px;} .button {float:left !important; margin-right:10px; cursor:pointer;} + + + + + +
+ + \ No newline at end of file diff --git a/sigi/apps/pesquisas/views.py b/sigi/apps/pesquisas/views.py index 7e8592d..6328f67 100644 --- a/sigi/apps/pesquisas/views.py +++ b/sigi/apps/pesquisas/views.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -from sigi.forms_builder.forms.views import FormDetail, FormSent +from forms_builder.forms.views import FormDetail, FormSent from sigi.apps.pesquisas.models import Pesquisa from sigi.apps.pesquisas.forms import PesquisaForm diff --git a/sigi/urls.py b/sigi/urls.py index 86f3713..eb378b3 100644 --- a/sigi/urls.py +++ b/sigi/urls.py @@ -18,6 +18,8 @@ urlpatterns = patterns('', url(r'^servicos/', include('sigi.apps.servicos.urls')), url(r'^dashboard/', include('sigi.apps.metas.urls')), url(r'^pesquisas/formulario/', include('sigi.apps.pesquisas.urls')), + + url(r'^pesquisas/chart/(?P\d+)/$', 'sigi.apps.pesquisas.views.chart_view'), url(r'^', include(admin.site.urls)),