OpenSlides/openslides/participant/urls.py

83 lines
2.1 KiB
Python
Raw Normal View History

2011-07-31 10:46:29 +02:00
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
2011-07-31 10:46:29 +02:00
from . import views
2012-10-27 18:17:22 +02:00
urlpatterns = patterns(
'',
2012-10-27 18:17:22 +02:00
# User
url(r'^$',
views.UserOverview.as_view(),
name='user_overview'), # TODO: Rename this to user_list
url(r'^new/$',
views.UserCreateView.as_view(),
name='user_new'),
2012-10-27 18:17:22 +02:00
url(r'^(?P<pk>\d+)/$',
views.UserDetailView.as_view(),
name='user_view'),
2012-10-27 18:17:22 +02:00
url(r'^(?P<pk>\d+)/edit/$',
views.UserUpdateView.as_view(),
name='user_edit'),
url(r'^(?P<pk>\d+)/del/$',
views.UserDeleteView.as_view(),
name='user_delete'),
url(r'^(?P<pk>\d+)/reset_password/$',
views.ResetPasswordView.as_view(),
name='user_reset_password'),
url(r'^(?P<pk>\d+)/status/activate/$',
views.SetUserStatusView.as_view(),
{'action': 'activate'},
name='user_status_activate'),
url(r'^(?P<pk>\d+)/status/deactivate/$',
views.SetUserStatusView.as_view(),
{'action': 'deactivate'},
name='user_status_deactivate'),
2012-10-27 18:17:22 +02:00
url(r'^(?P<pk>\d+)/status/toggle/$',
views.SetUserStatusView.as_view(),
2012-10-27 18:17:22 +02:00
{'action': 'toggle'},
name='user_status_toggle'),
2012-10-27 18:17:22 +02:00
url(r'^import/$',
views.UserImportView.as_view(),
name='user_import'),
2012-10-27 18:17:22 +02:00
# Group
url(r'^group/$',
views.GroupOverview.as_view(),
name='user_group_overview'), # TODO: Rename this to group_list
url(r'^group/new/$',
views.GroupCreateView.as_view(),
name='user_group_new'),
2012-10-27 18:17:22 +02:00
url(r'^group/(?P<pk>\d+)/$',
views.GroupDetailView.as_view(),
name='user_group_view'),
2012-10-27 18:17:22 +02:00
url(r'^group/(?P<pk>\d+)/edit/$',
views.GroupUpdateView.as_view(),
name='user_group_edit'),
url(r'^group/(?P<pk>\d+)/del/$',
views.GroupDeleteView.as_view(),
name='user_group_delete'),
2012-10-27 18:17:22 +02:00
# PDF
url(r'^print/$',
views.ParticipantsListPDF.as_view(),
name='user_print'),
url(r'^passwords/print/$',
views.ParticipantsPasswordsPDF.as_view(),
name='print_passwords'),
2011-07-31 10:46:29 +02:00
)