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'^$',
|
2014-10-11 14:34:49 +02:00
|
|
|
views.UserListView.as_view(),
|
|
|
|
name='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
|
|
|
|
2014-01-11 21:56:19 +01:00
|
|
|
url(r'^new_multiple/$',
|
|
|
|
views.UserMultipleCreateView.as_view(),
|
|
|
|
name='user_new_multiple'),
|
|
|
|
|
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
|
|
|
|
2014-03-27 20:30:15 +01:00
|
|
|
url(r'^csv_import/$',
|
|
|
|
views.UserCSVImportView.as_view(),
|
|
|
|
name='user_csv_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/$',
|
2014-10-11 14:34:49 +02:00
|
|
|
views.GroupListView.as_view(),
|
|
|
|
name='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(),
|
2014-10-11 14:34:49 +02:00
|
|
|
name='group_create'),
|
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(),
|
2014-10-11 14:34:49 +02:00
|
|
|
name='group_detail'),
|
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(),
|
2014-10-11 14:34:49 +02:00
|
|
|
name='group_update'),
|
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(),
|
2014-10-11 14:34:49 +02:00
|
|
|
name='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/$',
|
2014-10-11 14:34:49 +02:00
|
|
|
views.UsersListPDF.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='user_print'),
|
2012-08-11 10:09:54 +02:00
|
|
|
|
2012-07-07 15:26:00 +02:00
|
|
|
url(r'^passwords/print/$',
|
2014-10-11 14:34:49 +02:00
|
|
|
views.UsersPasswordsPDF.as_view(),
|
2013-09-25 10:01:01 +02:00
|
|
|
name='print_passwords'),
|
2011-07-31 10:46:29 +02:00
|
|
|
)
|