29 lines
1.5 KiB
Python
29 lines
1.5 KiB
Python
from django.urls import path
|
|
from .views import *
|
|
from django.contrib.auth.decorators import login_required, permission_required
|
|
from django.contrib.admin.views.decorators import staff_member_required
|
|
|
|
'''
|
|
Permissions definiert in models.py bei USERS und dann hier vor die View geschrieben!
|
|
'''
|
|
|
|
urlpatterns = [
|
|
path('', AdmMain.as_view(), name='adm-main'),
|
|
path('ag/', AdmAgencys.as_view(), name="adm-agencys"),
|
|
path('import/', AdmImport.as_view(), name="adm-import"),
|
|
path('doimport/<int:pk>', AdmImportFlow.as_view(), name="adm-import-flow"),
|
|
path('us/', AdmUsers.as_view(), name="adm-users"),
|
|
path('agsingle/<int:agpk>', AdmAgencySingle.as_view(), name="adm-agency-single"),
|
|
path('ad/del/<int:pk>', delAgency.as_view(), name='adm-agency-delete'),
|
|
path('ag/bills/', AdmBills.as_view(), name="adm-bills"),
|
|
path('usersingle/<int:uspk>', AdmUserSingle.as_view(), name="adm-user-single"),
|
|
path('cron/<slug:code>', statisticCronJob, name="adm-cron"),
|
|
path('getorders/', getCSVRDOrders, name="getorders"),
|
|
path('adm/addbill', AdmAddBill.as_view(), name="admbill-add"),
|
|
path('wd/<int:pk>/update', AdmWorkdayUpdate.as_view(), name="adm-workday-update"),
|
|
path('wd/add/<int:uspk>', AdmWorkdayAdd.as_view(), name="adm-workday-add"),
|
|
path('wd/<int:pk>/delete', AdmWorkdayDelete.as_view(), name="adm-workday-delete"),
|
|
path('wd/break/<int:pk>/delete', AdmBreakDelete.as_view(), name="adm-break-delete"),
|
|
path('wd/<int:pk>/break/add', AdmAddBreak.as_view(), name="adm-break-add"),
|
|
]
|