1 | # -*- coding: utf-8 -*- |
---|
2 | """ |
---|
3 | Sistema de Consulta Pública |
---|
4 | |
---|
5 | Copyleft (@) 2017 CENDITEL nodo Mérida - https://planificacion.cenditel.gob.ve/trac/wiki/ModeladoTopicos_2017 |
---|
6 | """ |
---|
7 | ## @package consulta.urls |
---|
8 | # |
---|
9 | # Urls de la aplicación consulta |
---|
10 | # @author Rodrigo Boet (rboet at cenditel.gob.ve) |
---|
11 | # @author <a href='http://www.cenditel.gob.ve'>Centro Nacional de Desarrollo e Investigación en TecnologÃas Libres |
---|
12 | # (CENDITEL) nodo Mérida - Venezuela</a> |
---|
13 | # @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a> |
---|
14 | # @version 1.0 |
---|
15 | from django.conf.urls import url |
---|
16 | from django.contrib import admin |
---|
17 | from .views import * |
---|
18 | from .ajax import * |
---|
19 | |
---|
20 | urlpatterns = [ |
---|
21 | ## Urls de la consulta |
---|
22 | url(r'^$', ConsultaIndex.as_view(), name = "consulta_index"), |
---|
23 | url(r'^create$', ConsultaCreate.as_view(), name = "consulta_create"), |
---|
24 | url(r'^list$', ConsultaList.as_view(), name = "consulta_list"), |
---|
25 | url(r'^stats/(?P<pk>\d+)$', ConsultaStats.as_view(), name = "consulta_stats"), |
---|
26 | url(r'^delete/(?P<pk>\d+)$', ConsultaDelete.as_view(), name = "consulta_delete"), |
---|
27 | url(r'^detail/(?P<pk>\d+)$', ConsultaDetail.as_view(), name = "consulta_detail"), |
---|
28 | url(r'^update/(?P<pk>\d+)$', ConsultaUpdate.as_view(), name = "consulta_update"), |
---|
29 | ## Urls de las preguntas |
---|
30 | url(r'^create-question/(?P<pk>\d+)$', PreguntaCreate.as_view(), name = "question_create"), |
---|
31 | url(r'^delete-question/(?P<pk>\d+)$', PreguntaDelete.as_view(), name = "question_delete"), |
---|
32 | url(r'^update-question$', PreguntaUpdate.as_view(), name = "question_update"), |
---|
33 | ## Urls de las opciones |
---|
34 | url(r'^create-option/(?P<pk>\d+)$', OpcionesCreate.as_view(), name = "option_create"), |
---|
35 | url(r'^update-option$', OpcionesUpdate.as_view(), name = "option_update"), |
---|
36 | url(r'^delete-option/(?P<pk>\d+)$', OpcionesDelete.as_view(), name = "opciones_delete"), |
---|
37 | ] |
---|
38 | |
---|
39 | ## Urls por ajax |
---|
40 | urlpatterns += [ |
---|
41 | url(r'^ajax/pregunta-list/(?P<pk>\d+)$', pregunta_list, name = "ajax_pregunta_list"), |
---|
42 | url(r'^ajax/opciones-list/(?P<pk>\d+)$', opciones_list, name = "ajax_opciones_list"), |
---|
43 | url(r'^ajax/valid-dir/(?P<pk>\d+)$', valid_dir, name = "ajax_valid_dir"), |
---|
44 | url(r'^ajax/generar-textos-respuesta/(?P<pk>\d+)$', generar_texto_respuesta, name = "generar_textos_respuesta"), |
---|
45 | ] |
---|