Beispiel #1
0
from django.conf import settings
from apps.asistencia import views
from apps.asistencia.views import AsistenciaSingleTableView, UserSingleTableView, UserUpdateView, AsistenciasSingleTableView
from apps.decorators import custom_permission_required

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin/jsi18n/$', 'django.views.i18n.javascript_catalog'),
    url(r'^logout/$', 'django.contrib.auth.views.logout', name='logout', kwargs={'next_page': '/'}),
    
    #NO MOVER DE LUGAR!!!!!!!!!!!!
    url('^', include('django.contrib.auth.urls')),
    url(r'^$', 'django.contrib.auth.views.login', {'template_name':'index.html'}, name='login'),
    url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT,}),

    url(r'^home$', views.home, name='home'),


	url(r'^mismarcas/$', custom_permission_required('asistencia.add_asistencia')(AsistenciaSingleTableView.as_view()), name='mismarcas'),

    url(r'^marcas/$', custom_permission_required('asistencia.list_asistencia')(AsistenciasSingleTableView.as_view()), name='marcas'),

    url(r'^administrar/$', custom_permission_required('auth.add_user')(UserSingleTableView.as_view()), name='administrar'),


    url(r'^administrar/addUsuario$', custom_permission_required('auth.add_user')(views.addUsuario), name='add_user'),
    url(r'^administrar/updUsuario/(?P<pk>[\d]+)$', custom_permission_required('auth.change_user')(UserUpdateView.as_view()), name='upd_user'),


]
Beispiel #2
0
from django.conf.urls import patterns, url
from .views import DescuentoSingleTableView, DescuentoCreateView, DescuentoDetailView, DescuentoUpdateView, DescuentoDeleteView

from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required


urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='base/divided.html'), name='descuentos'),
    url(r'^descuentos/$', custom_permission_required('descuentos.add_PorTipoCarreraConcepto')(DescuentoSingleTableView.as_view()), name ='lst_descuento'),
    url(r'^descuentos/addDescuento/$', custom_permission_required('descuentos.add_descuento')(DescuentoCreateView.as_view()), name='add_descuento'),
    url(r'^descuentos/detDescuento/(?P<pk>[\d]+)$', custom_permission_required('descuentos.view_descuento')(DescuentoDetailView.as_view()), name='det_descuento'),
	url(r'^descuentos/updDescuento/(?P<pk>[\d]+)$', custom_permission_required('descuentos.change_descuento')(DescuentoUpdateView.as_view()), name='upd_descuento'),
    url(r'^descuentos/delDescuento/(?P<pk>[\d]+)$', custom_permission_required('descuentos.delete_descuento')(DescuentoDeleteView.as_view()), name ='del_descuento'),

)


Beispiel #3
0
from django.conf.urls import patterns, url
from .views import AlumnoSingleTableView, PersonaSingleTableView,  AlumnoDetailView, PersonaDetailView, fraccionar_planpago_ajax, ReciboCancelView, \
    ReciboSingleTableView, ReciboFormView, PlanPagoFormView, ReciboPlanPagoFormView, ReciboDetailView, total_recibo_plan_pago_ajax, PlanPagoSingleTableView, \
    PlanPagoDetailView, PlanPagoUpdateView, PlanPagoDeleteView, CursoExtractoSingleTableView, CursoDetailView, FraccionarPlanFormView, EstadoDeCuentaSingleTableView, \
    AutorizarCursoDetailView, ImprimirReciboDetailView
from apps.entidades.views import AlumnoCreateView
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required
from apps.catedras.views import CursoCreateView

urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='base/divided.html'), name='finanzas'),

    url(r'^personas/$', custom_permission_required('finanzas.add_recibo')(PersonaSingleTableView.as_view()), name ='lst_persona'),
    url(r'^personas/detPersona/(?P<pk>[\d]+)$', custom_permission_required('finanzas.add_recibo')(PersonaDetailView.as_view()), name='det_persona'),
    url(r'^alumnos/detAlumno/(?P<pk>[\d]+)$', custom_permission_required('finanzas.view_planpago')(AlumnoDetailView.as_view()), name='det_alumno'),

    url(r'^estadoDeCuenta/$', custom_permission_required('finanzas.list_planpago')(EstadoDeCuentaSingleTableView.as_view()), name ='lst_estadoDeCuenta'),


    url(r'^fraccionar_planpago_ajax', 'apps.finanzas.views.fraccionar_planpago_ajax', name='fraccionar_planpago'),
    url(r'^total_recibo_plan_pago_ajax', 'apps.finanzas.views.total_recibo_plan_pago_ajax', name='total_recibo_plan_pago'),


    url(r'^recibos/$', custom_permission_required('finanzas.list_recibo')(ReciboSingleTableView.as_view()), name ='lst_recibo'),
    
    url(r'^recibos/anularRecibo/(?P<pk>[\d]+)$', custom_permission_required('finanzas.delete_recibo')(ReciboCancelView.as_view()), name ='anu_recibo'),
    url(r'^recibos/prtRecibo/(?P<pk>[\d]+)$', custom_permission_required('finanzas.view_recibo')(ImprimirReciboDetailView.as_view()), name ='prt_recibo'),
Beispiel #4
0
from django.conf.urls import patterns, url
from .views import PersonaSingleTableView, PersonaCreateView, PersonaDetailView, PersonaUpdateView, AlumnoSingleTableView, AlumnoCreateView, AlumnoDetailView, AlumnoUpdateView, PersonaDeleteView, AlumnoDeleteView
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required

urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='base/divided.html'), name='entidades'),

    url(r'^personas/$', custom_permission_required('entidades.list_persona')(PersonaSingleTableView.as_view()), name ='lst_persona'),
    url(r'^personas/addPersona/$', custom_permission_required('entidades.add_persona')(PersonaCreateView.as_view()), name ='add_persona'),
    url(r'^personas/detPersona/(?P<pk>[\d]+)$', custom_permission_required('entidades.view_persona')(PersonaDetailView.as_view()), name ='det_persona'),
    url(r'^personas/updPersona/(?P<pk>[\d]+)$', custom_permission_required('entidades.change_persona')(PersonaUpdateView.as_view()), name ='upd_persona'),
    url(r'^personas/delPersona/(?P<pk>[\d]+)$', custom_permission_required('entidades.delete_persona')(PersonaDeleteView.as_view()), name ='del_persona'),


    url(r'^alumnos/$', custom_permission_required('entidades.list_alumno')(AlumnoSingleTableView.as_view()), name ='lst_alumno'),
    url(r'^alumnos/addAlumno/$', custom_permission_required('entidades.add_alumno')(AlumnoCreateView.as_view()), name ='add_alumno'),
    url(r'^alumnos/detAlumno/(?P<pk>[\d]+)$', custom_permission_required('entidades.view_alumno')(AlumnoDetailView.as_view()), name ='det_alumno'),
    url(r'^alumnos/updAlumno/(?P<pk>[\d]+)$', custom_permission_required('entidades.change_alumno')(AlumnoUpdateView.as_view()), name ='upd_alumno'),
    url(r'^alumnos/delAlumno/(?P<pk>[\d]+)$', custom_permission_required('entidades.delete_alumno')(AlumnoDeleteView.as_view()), name ='del_alumno'),
	
	url(r'^alumnos/verificarCedula-ajax/$', 'apps.entidades.views.verificarCedula_ajax' , name ='verificar_cedula'),

    url(r'^alumnos/get_full_name-ajax/$', 'apps.entidades.views.get_full_name_ajax' , name ='get_full_name'),
    url(r'^personas/get_full_name-ajax/$', 'apps.entidades.views.persona_get_full_name_ajax' , name ='persona_get_full_name'),

)

Beispiel #5
0
from django.conf.urls import patterns, url
from .views import RendicionSingleTableView, RendicionCreateView, RendicionDetailView, RendicionDeleteView, RendicionUpdateView, AprobarRendicionUpdateView
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required


urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='base/divided.html'), name='rendiciones'),

    url(r'^rendiciones/$', custom_permission_required('rendiciones.list_rendicion')(RendicionSingleTableView.as_view()), name ='lst_rendicion'),
    url(r'^rendiciones/addRendicion/$', custom_permission_required('rendiciones.add_rendicion')(RendicionCreateView.as_view()), name='add_rendicion'),
    url(r'^rendiciones/detRendicion/(?P<pk>[\d]+)$', custom_permission_required('rendiciones.view_rendicion')(RendicionDetailView.as_view()), name='det_rendicion'),
    url(r'^rendiciones/delRendicion/(?P<pk>[\d]+)$', custom_permission_required('rendiciones.delete_rendicion')(RendicionDeleteView.as_view()), name='del_rendicion'),
    url(r'^rendiciones/updRendicion/(?P<pk>[\d]+)$', custom_permission_required('rendiciones.change_rendicion')(RendicionUpdateView.as_view()), name='upd_rendicion'),
    url(r'^rendiciones/aprRendicion/(?P<pk>[\d]+)$', custom_permission_required('rendiciones.change_rendicion')(AprobarRendicionUpdateView.as_view()), name='apr_rendicion'),

    url(r'^rendiciones/csvRendicion/(?P<pk>[\d]+)$', ('apps.rendiciones.views.csvRendicion') , name='csv_rendicion'),
    url(r'^rendiciones/excRendicion/(?P<pk>[\d]+)$', ('apps.rendiciones.views.excelRendicion') , name='exc_rendicion'),


)
Beispiel #6
0
    CursoAlumnoSingleTableView,
    CursoAlumnoDetailView,
    CursoAlumnoUpdateView,
    CursoAlumnoDeleteView,
)
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required


urlpatterns = patterns(
    "",
    url(r"^$", TemplateView.as_view(template_name="base/divided.html"), name="catedras"),
    url(
        r"^cursos/$",
        custom_permission_required("catedras.list_curso")(CursoSingleTableView.as_view()),
        name="lst_curso",
    ),
    url(
        r"^cursos/detCurso/(?P<pk>[\d]+)$",
        custom_permission_required("catedras.view_curso")(CursoDetailView.as_view()),
        name="det_curso",
    ),
    url(
        r"^cursos/addCurso/$",
        custom_permission_required("catedras.add_curso")(CursoCreateView.as_view()),
        name="add_curso",
    ),
    url(
        r"^cursos/updCurso/(?P<pk>[\d]+)$",
        custom_permission_required("catedras.change_curso")(CursoUpdateView.as_view()),
Beispiel #7
0
    UserChgPasswordView,
    UserPerfilDetailView,
    UserPerfilUpdateView,
    DownloadScoresReport,
)
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required
from django.contrib.auth.forms import AdminPasswordChangeForm
from django.contrib.auth import views as auth_views

urlpatterns = patterns(
    "",
    url(r"^$", TemplateView.as_view(template_name="base/divided.html"), name="autorizaciones"),
    url(
        r"^usuarios/$", custom_permission_required("auth.list_user")(UserSingleTableView.as_view()), name="lst_usuario"
    ),
    url(r"^usuarios/addUsuario/$", ("apps.autorizaciones.views.addUsuario"), name="add_usuario"),
    url(
        r"^usuarios/detUsuario/(?P<pk>[\d]+)$",
        custom_permission_required("auth.view_user")(UserDetailView.as_view()),
        name="det_usuario",
    ),
    # url(r'^usuarios/updUsuario/(?P<pk>[\d]+)$', ('apps.autorizaciones.views.updUsuario'), name='upd_usuario'),
    url(
        r"^usuarios/updUsuario/(?P<pk>[\d]+)$",
        custom_permission_required("auth.change_user")(UserUpdateView.as_view()),
        name="upd_usuario",
    ),
    url(
        r"^usuarios/delUsuario/(?P<pk>[\d]+)$",
Beispiel #8
0
from django.conf.urls import patterns, url
from .views import ConceptoSingleTableView, ConceptoUpdateView, ConceptoDetailView, ConceptoCreateView, PeriodoSingleTableView, PeriodoCreateView, \
	PeriodoDetailView, ArancelSingleTableView, ArancelDetailView, ArancelCreateView, TipoConceptoSingleTableView, TipoConceptoDetailView, TipoConceptoCreateView, \
    TipoConceptoUpdateView, TipoConceptoDeleteView, PeriodoUpdateView, PeriodoDeleteView, ConceptoDeleteView, ArancelUpdateView, ArancelDeleteView
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required, permission_required
from apps.decorators import custom_permission_required


urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='base/divided.html'), name='aranceles'),

    url(r'^conceptos/$', custom_permission_required('aranceles.list_concepto')(ConceptoSingleTableView.as_view()), name ='lst_concepto'),
	url(r'^conceptos/addConcepto/$', custom_permission_required('aranceles.add_concepto')(ConceptoCreateView.as_view()), name='add_concepto'),
    url(r'^conceptos/detConcepto/(?P<pk>[\d]+)$', custom_permission_required('aranceles.view_concepto')(ConceptoDetailView.as_view()), name='det_concepto'),
	url(r'^conceptos/updConcepto/(?P<pk>[\d]+)$', custom_permission_required('aranceles.change_concepto')(ConceptoUpdateView.as_view()), name='upd_concepto'),
    url(r'^conceptos/delConcepto/(?P<pk>[\d]+)$', custom_permission_required('aranceles.delete_concepto')(ConceptoDeleteView.as_view()), name ='del_concepto'),


    url(r'^periodos/$', custom_permission_required('aranceles.list_periodo')(PeriodoSingleTableView.as_view()), name ='lst_periodo'),
    url(r'^periodos/addPeriodo/$', custom_permission_required('aranceles.add_periodo')(PeriodoCreateView.as_view()), name='add_periodo'),
    url(r'^periodos/detPeriodo/(?P<pk>[\d]+)$', custom_permission_required('aranceles.view_periodo')(PeriodoDetailView.as_view()), name='det_periodo'),
    url(r'^periodos/updPeriodo/(?P<pk>[\d]+)$', custom_permission_required('aranceles.change_periodo')(PeriodoUpdateView.as_view()), name='upd_periodo'),
    url(r'^periodos/delPeriodo/(?P<pk>[\d]+)$', custom_permission_required('aranceles.delete_periodo')(PeriodoDeleteView.as_view()), name ='del_periodo'),


    url(r'^aranceles/$', custom_permission_required('aranceles.list_arancel')(ArancelSingleTableView.as_view()), name ='lst_arancel'),
	url(r'^aranceles/addArancel/$', custom_permission_required('aranceles.add_arancel')(ArancelCreateView.as_view()), name='add_arancel'),
    url(r'^aranceles/detArancel/(?P<pk>[\d]+)$', custom_permission_required('aranceles.view_arancel')(ArancelDetailView.as_view()), name='det_arancel'),
    url(r'^aranceles/updArancel/(?P<pk>[\d]+)$', custom_permission_required('aranceles.change_arancel')(ArancelUpdateView.as_view()), name='upd_arancel'),
Beispiel #9
0
#from django.conf import settings

#from wkhtmltopdf.views import PDFTemplateView

urlpatterns = patterns('',

    url(r'^$', TemplateView.as_view(template_name='index.html'), name='localizaciones'),

    # url(r'^listarPaises/$', login_required(listarPaises.as_view()), name ='listar_paises'),
    # url(r'^listarPaises/addPais/$', addPais.as_view(), name ='add_pais'),
    # url(r'^listarPaises/updPais/(?P<pk>[\d]+)$', permission_required('pais.change_pais')(updPais.as_view()), name='upd_pais'),
    # url(r'^listarPaises/delPais/(?P<pk>[\d]+)$', delPais.as_view(), name='del_pais'),
    # url(r'^listarPaises/detPais/(?P<pk>[\d]+)$', detPais.as_view(), name='det_pais'),

    url(r'^paises/$', login_required(paisSingleTableView.as_view()), name ='lst_pais'),
    url(r'^paises/addPais/$', custom_permission_required('pais.add_pais')(paisCreateView.as_view()), name ='add_pais'),
    url(r'^paises/updPais/(?P<pk>[\d]+)$', custom_permission_required('pais.change_pais')(paisUpdateView.as_view()), name='upd_pais'),
    url(r'^paises/delPais/(?P<pk>[\d]+)$', custom_permission_required('pais.delete_pais')(paisDeleteView.as_view()), name='del_pais'),
    url(r'^paises/detPais/(?P<pk>[\d]+)$', login_required(paisDetailView.as_view()), name='det_pais'),

    # url(r'^listarDepartamentos/$', listarDepartamentos.as_view(), name ='listar_departamentos'),
    # url(r'^listarDepartamentos/addDepartamento/$', addDepartamento.as_view(), name ='add_departamento'),
    # url(r'^listarCiudades/$', 'apps.localizaciones.views.listarCiudades', name ='listar_ciudades'),

    url(r'^departamentos/$', login_required(departamentoSingleTableView.as_view()), name ='lst_departamento'),
    url(r'^departamentos/addDepartamento/$', custom_permission_required('departamento.add_departamento')(departamentoCreateView.as_view()), name ='add_departamento'),
    url(r'^departamentos/updDepartamento/(?P<pk>[\d]+)$', custom_permission_required('departamento.change_departamento')(departamentoUpdateView.as_view()), name='upd_departamento'),
    url(r'^departamentos/delDepartamento/(?P<pk>[\d]+)$', custom_permission_required('departamento.delete_departamento')(departamentoDeleteView.as_view()), name='del_departamento'),
    url(r'^departamentos/detDepartamento/(?P<pk>[\d]+)$', login_required(departamentoDetailView.as_view()), name='det_departamento'),

)