2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import patterns, url
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
from . import views
|
2012-02-19 19:27:00 +01:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentListView.as_view(),
|
|
|
|
name='assignment_list'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-09-08 14:33:43 +02:00
|
|
|
url(r'^(?P<pk>\d+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentDetail.as_view(),
|
2013-09-08 14:33:43 +02:00
|
|
|
name='assignment_detail'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2012-07-10 11:27:06 +02:00
|
|
|
url(r'^new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentCreateView.as_view(),
|
|
|
|
name='assignment_create'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-09-08 14:33:43 +02:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentUpdateView.as_view(),
|
|
|
|
name='assignment_update'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-09-08 14:33:43 +02:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentDeleteView.as_view(),
|
|
|
|
name='assignment_delete'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2015-01-25 15:10:34 +01: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
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
url(r'^(?P<pk>\d+)/candidate/$',
|
|
|
|
views.AssignmentCandidateView.as_view(),
|
|
|
|
name='assignment_candidate'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
url(r'^(?P<pk>\d+)/delete_candidate/$',
|
|
|
|
views.AssignmentDeleteCandidateshipView.as_view(),
|
|
|
|
name='assignment_del_candidate'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2015-01-25 15:10:34 +01: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
|
|
|
|
2013-09-07 00:18:13 +02:00
|
|
|
url(r'^(?P<pk>\d+)/agenda/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.CreateRelatedAgendaItemView.as_view(),
|
|
|
|
name='assignment_create_agenda'),
|
2012-06-23 10:27:58 +02:00
|
|
|
|
|
|
|
url(r'^print/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentPDF.as_view(),
|
|
|
|
name='assignment_list_pdf'),
|
2011-09-07 07:52:44 +02:00
|
|
|
|
2013-09-08 14:33:43 +02:00
|
|
|
url(r'^(?P<pk>\d+)/print/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentPDF.as_view(),
|
|
|
|
name='assignment_pdf'),
|
2011-09-07 07:52:44 +02:00
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
url(r'^(?P<pk>\d+)/create_poll/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.PollCreateView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='assignmentpoll_create'),
|
2011-07-31 10:46:29 +02:00
|
|
|
|
2013-10-17 11:34:54 +02:00
|
|
|
url(r'^poll/(?P<poll_id>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.PollUpdateView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
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/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.AssignmentPollDeleteView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='assignmentpoll_delete'),
|
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
url(r'^poll/(?P<poll_pk>\d+)/print/$',
|
2013-10-17 11:34:54 +02:00
|
|
|
views.AssignmentPollPDF.as_view(),
|
|
|
|
name='assignmentpoll_pdf'),
|
2011-09-03 11:42:44 +02:00
|
|
|
|
2013-09-08 14:33:43 +02:00
|
|
|
url(r'^poll/(?P<pk>\d+)/pub/$',
|
2015-01-25 15:10:34 +01:00
|
|
|
views.SetPublishPollView.as_view(),
|
|
|
|
{'publish': True},
|
|
|
|
name='assignmentpoll_publish_poll'),
|
2011-09-08 12:30:34 +02:00
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
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>[^/]+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetElectedView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
{'elected': True},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='assignment_user_elected'),
|
2011-09-03 11:42:44 +02:00
|
|
|
|
2015-01-25 15:10:34 +01:00
|
|
|
url(r'^(?P<pk>\d+)/notelected/(?P<user_pk>[^/]+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetElectedView.as_view(),
|
2012-04-13 21:43:16 +02:00
|
|
|
{'elected': False},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='assignment_user_not_elected')
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|