from django.conf.urls import patterns, url
from .views import PlanCreate, PlanList, PlanUpdate, PlanDelete

urlpatterns = patterns('',
                       url(r'^ajax/estado_civil/alta/$', 'apps.complementos.views.estado_civil_create_ajax',
                           name='EstadoCivil-Alta-Ajax'),
                       url(r'^ajax/plan/alta/$', 'apps.complementos.views.plan_create_ajax', name='Plan-Alta-Ajax'),
                       url(r'^planes/alta/$', PlanCreate.as_view(), name='Plan-Alta'),
                       url(r'^planes/listado/$', PlanList.as_view(), name='Plan-Listado'),
                       url(r'^planes/modi/(?P<pk>\d+)$', PlanUpdate.as_view(), name='Plan-Modi'),
                       url(r'^planes/baja/(?P<pk>\d+)$', PlanDelete.as_view(), name='Plan-Baja'),
                       )

