2013-09-25 10:01:01 +02:00
|
|
|
from django.conf.urls import patterns, url
|
2012-10-24 11:04:23 +02:00
|
|
|
|
2014-12-25 10:58:52 +01:00
|
|
|
from . import views
|
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
# TODO: define the Views inhere
|
|
|
|
urlpatterns = patterns(
|
|
|
|
'openslides.motion.views',
|
2012-10-24 11:04:23 +02:00
|
|
|
url(r'^$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionListView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_list'),
|
2012-10-24 11:04:23 +02:00
|
|
|
|
2013-03-11 20:17:19 +01:00
|
|
|
url(r'^new/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionCreateView.as_view(),
|
|
|
|
name='motion_create'),
|
2012-10-24 11:04:23 +02:00
|
|
|
|
2013-01-06 12:07:37 +01:00
|
|
|
url(r'^(?P<pk>\d+)/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionDetailView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_detail'),
|
2012-10-24 11:04:23 +02:00
|
|
|
|
2013-01-06 12:07:37 +01:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionUpdateView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_update'),
|
2012-10-24 11:04:23 +02:00
|
|
|
|
2013-02-02 00:27:16 +01:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionDeleteView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_delete'),
|
2013-02-02 00:27:16 +01:00
|
|
|
|
2014-12-25 10:58:52 +01:00
|
|
|
url(r'^(?P<pk>\d+)/new_amendment/$',
|
|
|
|
views.MotionCreateAmendmentView.as_view(),
|
|
|
|
name='motion_create_amendment'),
|
|
|
|
|
2013-02-03 13:24:29 +01:00
|
|
|
url(r'^(?P<pk>\d+)/version/(?P<version_number>\d+)/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionDetailView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_version_detail'),
|
2013-01-26 18:18:02 +01:00
|
|
|
|
2013-02-03 13:24:29 +01:00
|
|
|
url(r'^(?P<pk>\d+)/version/(?P<version_number>\d+)/permit/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.VersionPermitView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_version_permit'),
|
2013-02-03 13:24:29 +01:00
|
|
|
|
2013-06-13 15:43:17 +02:00
|
|
|
url(r'^(?P<pk>\d+)/version/(?P<version_number>\d+)/del/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.VersionDeleteView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_version_delete'),
|
2013-06-13 15:43:17 +02:00
|
|
|
|
2013-03-14 21:28:03 +01:00
|
|
|
url(r'^(?P<pk>\d+)/diff/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.VersionDiffView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_version_diff'),
|
2013-03-14 21:28:03 +01:00
|
|
|
|
2013-01-26 18:18:02 +01:00
|
|
|
url(r'^(?P<pk>\d+)/support/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.SupportView.as_view(support=True),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_support'),
|
2013-01-26 18:18:02 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/unsupport/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.SupportView.as_view(support=False),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_unsupport'),
|
2013-02-01 12:51:54 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/create_poll/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.PollCreateView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='motionpoll_create'),
|
2013-02-01 12:51:54 +01:00
|
|
|
|
2013-02-01 13:24:44 +01:00
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/edit/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.PollUpdateView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='motionpoll_update'),
|
2013-02-01 12:51:54 +01:00
|
|
|
|
2013-02-01 13:24:44 +01:00
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/del/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.PollDeleteView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='motionpoll_delete'),
|
2013-02-01 17:20:11 +01:00
|
|
|
|
2013-04-21 19:12:50 +02:00
|
|
|
url(r'^(?P<pk>\d+)/poll/(?P<poll_number>\d+)/pdf/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.PollPDFView.as_view(),
|
2013-10-17 11:34:54 +02:00
|
|
|
name='motionpoll_pdf'),
|
2013-04-21 19:12:50 +02:00
|
|
|
|
2013-02-06 23:56:21 +01:00
|
|
|
url(r'^(?P<pk>\d+)/set_state/(?P<state>\d+)/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionSetStateView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_set_state'),
|
2013-02-01 17:20:11 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/reset_state/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionSetStateView.as_view(reset=True),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_reset_state'),
|
2013-02-02 00:51:08 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/agenda/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.CreateRelatedAgendaItemView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_create_agenda'),
|
2013-02-03 18:18:29 +01:00
|
|
|
|
|
|
|
url(r'^pdf/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionPDFView.as_view(print_all_motions=True),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_list_pdf'),
|
2013-02-03 18:18:29 +01:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/pdf/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionPDFView.as_view(print_all_motions=False),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_detail_pdf'),
|
2013-03-11 20:17:19 +01:00
|
|
|
|
|
|
|
url(r'^category/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.CategoryListView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_category_list'),
|
2013-03-11 20:17:19 +01:00
|
|
|
|
|
|
|
url(r'^category/new/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.CategoryCreateView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_category_create'),
|
2013-03-11 20:17:19 +01:00
|
|
|
|
|
|
|
url(r'^category/(?P<pk>\d+)/edit/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.CategoryUpdateView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_category_update'),
|
2013-03-11 21:38:07 +01:00
|
|
|
|
|
|
|
url(r'^category/(?P<pk>\d+)/del/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.CategoryDeleteView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_category_delete'),
|
2013-05-08 18:07:09 +02:00
|
|
|
|
|
|
|
url(r'^csv_import/$',
|
2014-12-25 10:58:52 +01:00
|
|
|
views.MotionCSVImportView.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='motion_csv_import'),
|
2012-10-24 11:04:23 +02:00
|
|
|
)
|