Exemplo n.º 1
0
     name='site-survey-list'),
 url(r'^api/sites/$',
     AllSiteViewSet.as_view({'get': 'list'}),
     name='sites-list'),
 url(r'^api/project-types/$', ProjectTypeViewset.as_view({'get': 'list'})),
 url(r'^api/survey-sites/(?P<pk>\d+)/$',
     SiteCreationSurveyViewSet.as_view({'get': 'list'}),
     name='sites-list'),
 url(r'^api/survey-sites-review/(?P<pk>\d+)/$',
     SiteReviewViewSet.as_view({'get': 'list'}),
     name='sites-list-review'),
 url(r'^api/project-sites/(?P<pk>\d+)/$',
     SiteUnderProjectViewSet.as_view({'get': 'list'}),
     name='project-sites-list'),
 url(r'^api/survey-sites-review-update/(?P<pk>\d+)/$',
     SiteReviewUpdateViewSet.as_view({'post': 'update'})),
 url(r'^api/survey-sites/$',
     SiteCreationSurveyViewSet.as_view({
         'post': 'create',
         'put': 'update'
     }),
     name='sites-list'),
 url(r'^site/$', SiteListView.as_view(), name='sites-list'),
 url(r'^site/$', SiteListView.as_view(), name='site-list'),
 url(r'^site/add/$', SiteCreateView.as_view(), name='site-add'),
 url(r'^site/(?P<pk>[0-9]+)/$', SiteUpdateView.as_view(), name='site-edit'),
 url(r'^site/blue-prints/(?P<id>[0-9]+)/$',
     blue_prints,
     name='site-blue-prints'),
 url(r'^site-dashboard/(?P<pk>[0-9]+)/$',
     site_dashboard,
Exemplo n.º 2
0
    url(r'^project/stages_status_report/(?P<pk>\d+)/$', stages_status_download, name='download-stages'),
    url(r'^project/add-proj-manager/(?P<pk>\d+)/$', add_proj_manager, name='add_proj_manager'),
    url(r'^project/add-role/(?P<pk>\d+)/$', add_project_role, name='add_project_staffs'),
    url(r'^api/project-sites/(?P<pk>\d+)/$', SiteViewSet.as_view({'get': 'list'}), name='project_sites'),
    url(r'^api/update-site/(?P<pk>\d+)$', SiteUpdateViewSet.as_view({'post': 'update'}), name='update_site_api'),
    url(r'^api/update-project/(?P<pk>\d+)$', ProjectUpdateViewSet.as_view({'put': 'update'}), name='update_project_api'),


    url(r'^survey-sites/(?P<pk>\d+)$', SiteSurveyListView.as_view(), name='site-survey-list'),
    url(r'^api/sites/$', AllSiteViewSet.as_view({'get': 'list'}), name='sites-list'),
    url(r'^api/project-types/$', ProjectTypeViewset.as_view({'get': 'list'})),
    url(r'^api/survey-sites/(?P<pk>\d+)/$', SiteCreationSurveyViewSet.as_view({'get': 'list'}), name='sites-list'),
    url(r'^api/survey-sites-review/(?P<pk>\d+)/$', SiteReviewViewSet.as_view({'get': 'list'}), name='sites-list-review'),
    url(r'^api/project-sites/(?P<pk>\d+)/$', SiteUnderProjectViewSet.as_view({'get': 'list'}), name='project-sites-list'),
    url(r'^api/org-sites/(?P<pk>\d+)/$', SiteUnderOrgViewSet.as_view({'get': 'list'}), name='org-sites-list'),
    url(r'^api/survey-sites-review-update/(?P<pk>\d+)/$', SiteReviewUpdateViewSet.as_view({'post': 'update'})),
    url(r'^api/survey-sites/$', SiteCreationSurveyViewSet.as_view({'post': 'create', 'put':'update'}), name='sites-list'),
    url(r'^site/$', SiteListView.as_view(), name='sites-list'),
    url(r'^site/$', SiteListView.as_view(), name='site-list'),
    url(r'^site/add/(?P<pk>[0-9]+)/$', SiteCreateView.as_view(), name='site-add'),
    url(r'^site/(?P<pk>[0-9]+)/$', SiteUpdateView.as_view(), name='site-edit'),

    url(r'^site/blue-prints/(?P<id>[0-9]+)/$', BluePrintsView.as_view(), name='site-blue-prints'),

    url(r'^site-dashboard/(?P<pk>[0-9]+)/$', SiteDashboardView.as_view(), name='site-dashboard'),

    url(r'^site/delete/(?P<pk>\d+)/$', SiteDeleteView.as_view(), name='site-delete'),
    url(r'^site/alter-status/(?P<pk>\d+)/$', alter_site_status, name='alter_site_status'),
    url(r'^site/add-supervisor/(?P<pk>\d+)/$', add_supervisor, name='add_supervisor'),
    url(r'^api/site-images/(?P<pk>\d+)/$', site_images, name='site_images'),