Esempio n. 1
0
    url(r'^manage/task/category/(?P<pk>\d+)/$',TaskCategoryUpdate.as_view(),name='task-category-update'),
    url(r'^manage/task/category/(?P<pk>\d+)/delete/$',TaskCategoryDelete.as_view(),name='task-category-delete'),


    url(r'^manage/project/category/list/$', ProjectCategoryList.as_view(), name='project-category-list'),
	url(r'^manage/project/category/add/$',ProjectCategoryCreate.as_view(),name='project-category-create'),
    url(r'^manage/project/category/(?P<pk>\d+)/$',ProjectCategoryUpdate.as_view(),name='project-category-update'),
    url(r'^manage/project/category/(?P<pk>\d+)/delete/$',ProjectCategoryDelete.as_view(),name='project-category-delete'),
    
    url(r'^manage/project/list/$', ProjectList.as_view(), name='project-list'),
	url(r'^manage/project/add/$',ProjectCreate.as_view(),name='project-create'),
    url(r'^manage/project/(?P<pk>\d+)/$',ProjectUpdate.as_view(),name='project-update'),
    url(r'^manage/project/(?P<pk>\d+)/delete/$',ProjectDelete.as_view(),name='project-delete'),


    url(r'^manage/task/list/(?P<pk>\d+)/$', TaskList.as_view(), name='task-list'),
	url(r'^manage/task/add/$',TaskCreate.as_view(),name='task-create'),
    url(r'^manage/task/(?P<pk>\d+)/$',TaskUpdate.as_view(),name='task-update'),
    url(r'^manage/task/(?P<pk>\d+)/delete/$',TaskDelete.as_view(),name='task-delete'),
    url(r'^manage/subtask/list/(?P<pk>\d+)/$',SubTaskList,name='subtask-list'),



    url(r'^manage/error/(?P<name>\w+)/$', DeleteError, name='delete-error' ),
    url(r'^contract_dates/$', ContractDates, name='contract_dates' ),




]
Esempio n. 2
0
)

# from works.views.manage.indicator import IndicatorCreate
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns(
    "task.manage",
    url(r"^manage/project/add/$", ProjectCreate.as_view(), name="project-create"),
    url(r"^manage/project/(?P<pk>\d+)/$", ProjectUpdate.as_view(), name="project-update"),
    url(r"^manage/project/(?P<pk>\d+)/delete/$", ProjectDelete.as_view(), name="project-delete"),
    url(r"^manage/project/$", ProjectList.as_view(), name="project-list"),
    url(r"^manage/task/add/(?P<pk>\d+)/$", TaskCreate.as_view(), name="task-create"),
    url(r"^manage/task/(?P<pk>\d+)/$", TaskUpdate.as_view(), name="task-update"),
    url(r"^manage/task/(?P<pk>\d+)/delete/$", TaskDelete.as_view(), name="task-delete"),
    url(r"^manage/task/$", TaskList.as_view(), name="task-list"),
    url(r"^manage/category/add/$", CategoryCreate.as_view(), name="category-create"),
    url(r"^manage/category/(?P<pk>\d+)/$", CategoryUpdate.as_view(), name="category-update"),
    url(r"^manage/category/(?P<pk>\d+)/delete/$", CategoryDelete.as_view(), name="category-delete"),
    url(r"^manage/category/$", CategoryList.as_view(), name="category-list"),
    url(r"^manage/error/(?P<name>\w+)/$", "DeleteError", name="delete-error"),
    url(r"^critical-path/(?P<pk>\d+)/$", "CriticalPath", name="critical-path"),
    url(r"^project-task-list/(?P<pk>\d+)/$", "ProjectListTask", name="project-task-list"),
    url(r"^contract_dates/$", "contract_dates", name="contract_dates"),
)

urlpatterns += patterns(
    "task.views",
    url(r"^task/(?P<id>(\d+))/pdf/$", "print_pdf", name="task-pdf"),
    url(r"^project/(?P<id>(\d+))/pdf/$", "project_pdf", name="project-pdf"),
    url(r"^project/category/(?P<pk>(\d+|all))$", "category", name="category"),