OpenSlides/openslides/assignment/urls.py

91 lines
2.6 KiB
Python
Raw Normal View History

from django.conf.urls import patterns, url
2011-07-31 10:46:29 +02:00
from . import views
2012-02-19 19:27:00 +01:00
urlpatterns = patterns(
'',
url(r'^$',
views.AssignmentListView.as_view(),
name='assignment_list'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/$',
views.AssignmentDetail.as_view(),
name='assignment_detail'),
2011-07-31 10:46:29 +02:00
2012-07-10 11:27:06 +02:00
url(r'^new/$',
views.AssignmentCreateView.as_view(),
name='assignment_create'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/edit/$',
views.AssignmentUpdateView.as_view(),
name='assignment_update'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/del/$',
views.AssignmentDeleteView.as_view(),
name='assignment_delete'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/set_phase/(?P<phase>\d+)/$',
views.AssignmentSetPhaseView.as_view(),
name='assignment_set_phase'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/candidate/$',
views.AssignmentCandidateView.as_view(),
name='assignment_candidate'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/delete_candidate/$',
views.AssignmentDeleteCandidateshipView.as_view(),
name='assignment_del_candidate'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/delother/(?P<user_pk>[^/]+)/$',
views.AssignmentDeleteCandidateshipOtherView.as_view(),
name='assignment_del_candidate_other'),
2011-07-31 10:46:29 +02:00
url(r'^(?P<pk>\d+)/agenda/$',
views.CreateRelatedAgendaItemView.as_view(),
name='assignment_create_agenda'),
2012-06-23 10:27:58 +02:00
url(r'^print/$',
views.AssignmentPDF.as_view(),
name='assignment_list_pdf'),
2011-09-07 07:52:44 +02:00
url(r'^(?P<pk>\d+)/print/$',
views.AssignmentPDF.as_view(),
name='assignment_pdf'),
2011-09-07 07:52:44 +02:00
url(r'^(?P<pk>\d+)/create_poll/$',
views.PollCreateView.as_view(),
name='assignmentpoll_create'),
2011-07-31 10:46:29 +02:00
url(r'^poll/(?P<poll_id>\d+)/edit/$',
views.PollUpdateView.as_view(),
name='assignmentpoll_update'),
2011-07-31 10:46:29 +02:00
2012-07-10 11:27:06 +02:00
url(r'^poll/(?P<pk>\d+)/del/$',
views.AssignmentPollDeleteView.as_view(),
name='assignmentpoll_delete'),
url(r'^poll/(?P<poll_pk>\d+)/print/$',
views.AssignmentPollPDF.as_view(),
name='assignmentpoll_pdf'),
url(r'^poll/(?P<pk>\d+)/pub/$',
views.SetPublishPollView.as_view(),
{'publish': True},
name='assignmentpoll_publish_poll'),
url(r'^poll/(?P<pk>\d+)/unpub/$',
views.SetPublishPollView.as_view(),
{'publish': False},
name='assignmentpoll_unpublish_poll'),
url(r'^(?P<pk>\d+)/elected/(?P<user_pk>[^/]+)/$',
views.SetElectedView.as_view(),
{'elected': True},
name='assignment_user_elected'),
url(r'^(?P<pk>\d+)/notelected/(?P<user_pk>[^/]+)/$',
views.SetElectedView.as_view(),
{'elected': False},
name='assignment_user_not_elected')
2011-07-31 10:46:29 +02:00
)