2011-07-31 10:46:29 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
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-10-27 18:17:22 +02:00
|
|
|
|
2013-09-25 10:01:01 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2012-10-27 18:17:22 +02:00
|
|
|
# User
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserOverview.as_view(),
|
2013-11-14 01:16:14 +01:00
|
|
|
name='user_overview'), # TODO: Rename this to user_list
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserCreateView.as_view(),
|
|
|
|
name='user_new'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
url(r'^(?P<pk>\d+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserDetailView.as_view(),
|
|
|
|
name='user_view'),
|
2012-10-27 18:17:22 +02:00
|
|
|
|
2012-08-10 13:22:09 +02:00
|
|
|
url(r'^(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserUpdateView.as_view(),
|
|
|
|
name='user_edit'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-08-10 13:29:46 +02:00
|
|
|
url(r'^(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserDeleteView.as_view(),
|
|
|
|
name='user_delete'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-08-10 21:24:26 +02:00
|
|
|
url(r'^(?P<pk>\d+)/reset_password/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ResetPasswordView.as_view(),
|
|
|
|
name='user_reset_password'),
|
2012-08-10 21:24:26 +02:00
|
|
|
|
2012-08-10 19:19:41 +02:00
|
|
|
url(r'^(?P<pk>\d+)/status/activate/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetUserStatusView.as_view(),
|
2012-08-10 19:19:41 +02:00
|
|
|
{'action': 'activate'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='user_status_activate'),
|
2012-08-10 19:19:41 +02:00
|
|
|
|
|
|
|
url(r'^(?P<pk>\d+)/status/deactivate/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetUserStatusView.as_view(),
|
2012-08-10 19:19:41 +02:00
|
|
|
{'action': 'deactivate'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='user_status_deactivate'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
url(r'^(?P<pk>\d+)/status/toggle/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.SetUserStatusView.as_view(),
|
2012-10-27 18:17:22 +02:00
|
|
|
{'action': 'toggle'},
|
2013-09-25 10:01:01 +02:00
|
|
|
name='user_status_toggle'),
|
2012-10-27 18:17:22 +02:00
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^import/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.UserImportView.as_view(),
|
|
|
|
name='user_import'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
# Group
|
2012-04-13 21:43:16 +02:00
|
|
|
url(r'^group/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.GroupOverview.as_view(),
|
2013-11-14 01:16:14 +01:00
|
|
|
name='user_group_overview'), # TODO: Rename this to group_list
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^group/new/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.GroupCreateView.as_view(),
|
|
|
|
name='user_group_new'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.GroupDetailView.as_view(),
|
|
|
|
name='user_group_view'),
|
2012-10-27 18:17:22 +02:00
|
|
|
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/edit/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.GroupUpdateView.as_view(),
|
|
|
|
name='user_group_edit'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^group/(?P<pk>\d+)/del/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.GroupDeleteView.as_view(),
|
|
|
|
name='user_group_delete'),
|
2012-04-13 21:43:16 +02:00
|
|
|
|
2012-10-27 18:17:22 +02:00
|
|
|
# PDF
|
2012-08-11 10:09:54 +02:00
|
|
|
url(r'^print/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ParticipantsListPDF.as_view(),
|
|
|
|
name='user_print'),
|
2012-08-11 10:09:54 +02:00
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^passwords/print/$',
|
2013-09-25 10:01:01 +02:00
|
|
|
views.ParticipantsPasswordsPDF.as_view(),
|
|
|
|
name='print_passwords'),
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|