Example #1
0
urlpatterns = patterns(
    "",
    url(r"^$", PersonaIndexView.as_view(), name="persona-index"),
    url(r"^(?P<pk>\d+)$", PersonaDetailView.as_view(), name="persona-view-id"),
    url(r"^(?P<pk>\d+)/descargar/$", PersonaDownloadView.as_view()),
    url(r"^(?P<pk>\d+)/eliminar/$", PersonaDeleteView.as_view()),
    url(r"^(?P<person_id>\d+)/editar/(?P<pk>\d+)/$", PersonaEditView.as_view()),
    url(
        r"^(?P<pk>\d+)/estilovida$",
        PersonaDetailView.as_view(template_name="persona/estilo_detail.html"),
        name="persona-estilo",
    ),
    url(r"^agregar$", PersonaCreateView.as_view(), name="persona-create"),
    url(r"^empresa/(?P<pk>\d+)$", EmpleadorDetailView.as_view(), name="empresa"),
    url(r"^empresa/agregar$", EmpleadorCreateView.as_view(), name="empresa-add"),
    url(r"^buscar$", PersonaSearchView.as_view(), name="persona-search"),
    url(r"^(?P<pk>\d+)/editar$", PersonaUpdateView.as_view(), name="persona-editar"),
    url(r"^(?P<pk>\d+)/duplicada$", PersonaDuplicateView.as_view(), name="persona-duplicate"),
    url(r"^(?P<persona>\d+)/empleo/add$", EmpleoCreateView.as_view(), name="persona-empleo-add"),
    url(r"^(?P<pk>\d+)/fisico/editar$", FisicoUpdateView.as_view(), name="persona-fisico-editar"),
    url(r"^(?P<pk>\d+)/estilovida/editar$", EstiloVidaUpdateView.as_view(), name="persona-estilovida-editar"),
    url(r"^(?P<pk>\d+)/antecedente/editar$", AntecedenteUpdateView.as_view(), name="persona-antecedente-editar"),
    url(
        r"^(?P<pk>\d+)/antecedente/familiar/editar$",
        AntecedenteFamiliarUpdateView.as_view(),
        name="persona-antecedente-familiar-editar",
    ),
    url(
        r"^(?P<pk>\d+)/antecedente/quirurgico/editar$",
        AntecedenteQuirurgicoUpdateView.as_view(),
        name="persona-antecedente-quirurgico-editar",
Example #2
0
     name='persona-index'),
 
 url(r'^(?P<pk>\d+)$',
     PersonaDetailView.as_view(),
     name='persona-view-id'),
 
 url(r'^(?P<pk>\d+)/estilovida$',
     PersonaDetailView.as_view(template_name='persona/estilo_detail.html'),
     name='persona-estilo'),
 
 url(r'^agregar$',
     PersonaCreateView.as_view(),
     name='persona-create'),
 
 url(r'^buscar$',
     PersonaSearchView.as_view(),
     name='persona-search'),
 
 url(r'^(?P<pk>\d+)/editar$',
     PersonaUpdateView.as_view(),
     name='persona-editar'),
 
 url(r'^(?P<pk>\d+)/fisico/editar$',
     FisicoUpdateView.as_view(),
     name='persona-fisico-editar'),
 
 url(r'^(?P<pk>\d+)/estilovida/editar$',
     EstiloVidaUpdateView.as_view(),
     name='persona-estilovida-editar'),
 
 url(r'^(?P<pk>\d+)/antecedente/editar$',
Example #3
0
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
from __future__ import unicode_literals

from django.conf.urls import url

from lab.views import IndexView, ResultadoCreateView
from persona.views import PersonaSearchView

urlpatterns = [

    url(r'^$',
        IndexView.as_view(),
        name='lab-index'),

    url(r'^resultado/(?P<persona>\d+)/agregar$',
        ResultadoCreateView.as_view(),
        name='lab-result-add'),

    url(r'^buscar$',
        PersonaSearchView.as_view(
                template_name='lab/persona_search.html'),
        name='lab-search'),

]
Example #4
0
 url(r'^(?P<pk>\d+)$', PersonaDetailView.as_view(), name='persona-view-id'),
 url(r'^(?P<pk>\d+)/descargar/$', PersonaDownloadView.as_view()),
 url(r'^(?P<pk>\d+)/eliminar/$', PersonaDeleteView.as_view()),
 url(r'^(?P<person_id>\d+)/editar/(?P<pk>\d+)/$',
     PersonaEditView.as_view()),
 url(r'^(?P<pk>\d+)/estilovida$',
     PersonaDetailView.as_view(template_name='persona/estilo_detail.html'),
     name='persona-estilo'),
 url(r'^agregar$', PersonaCreateView.as_view(), name='persona-create'),
 url(r'^empresa/(?P<pk>\d+)$',
     EmpleadorDetailView.as_view(),
     name='empresa'),
 url(r'^empresa/agregar$',
     EmpleadorCreateView.as_view(),
     name='empresa-add'),
 url(r'^buscar$', PersonaSearchView.as_view(), name='persona-search'),
 url(r'^(?P<pk>\d+)/editar$',
     PersonaUpdateView.as_view(),
     name='persona-editar'),
 url(r'^(?P<pk>\d+)/duplicada$',
     PersonaDuplicateView.as_view(),
     name='persona-duplicate'),
 url(r'^(?P<persona>\d+)/empleo/add$',
     EmpleoCreateView.as_view(),
     name='persona-empleo-add'),
 url(r'^(?P<pk>\d+)/fisico/editar$',
     FisicoUpdateView.as_view(),
     name='persona-fisico-editar'),
 url(r'^(?P<pk>\d+)/estilovida/editar$',
     EstiloVidaUpdateView.as_view(),
     name='persona-estilovida-editar'),
Example #5
0
from lab.views import IndexView, ResultadoCreateView
from persona.views import PersonaSearchView

try:
    from django.conf.urls import *
except ImportError:  # django < 1.4
    from django.conf.urls.defaults import *


urlpatterns = patterns('',

                       url(r'^$',
                           IndexView.as_view(),
                           name='lab-index'),

                       url(r'^resultado/(?P<persona>\d+)/agregar$',
                           ResultadoCreateView.as_view(),
                           name='lab-result-add'),

                       url(r'^buscar$',
                           PersonaSearchView.as_view(
                               template_name='lab/persona_search.html'),
                           name='lab-search'),

                       )