aboutsummaryrefslogtreecommitdiffstats
path: root/servo/urls/customer.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-08-04 10:11:24 +0300
commit63b0fc6269b38edf7234b9f151b80d81f614c0a3 (patch)
tree555de3068f33f8dddb4619349bbea7d9b7c822fd /servo/urls/customer.py
downloadServo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.gz
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.tar.bz2
Servo-63b0fc6269b38edf7234b9f151b80d81f614c0a3.zip
Initial commit
First public commit
Diffstat (limited to 'servo/urls/customer.py')
-rw-r--r--servo/urls/customer.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/servo/urls/customer.py b/servo/urls/customer.py
new file mode 100644
index 0000000..86c8e9d
--- /dev/null
+++ b/servo/urls/customer.py
@@ -0,0 +1,29 @@
+from django.conf.urls import patterns, url
+
+urlpatterns = patterns(
+ "servo.views.customer",
+ url(r'^$', 'index', {'group': 'all'}, name="customers-list_all"),
+ url(r'^find/$', 'find', name="customers-find"),
+ url(r'^search/$', 'search', name="customers-search"),
+ url(r'^filter/$', 'filter', name="customers-filter"),
+ url(r'^download/$', 'download', name="customers-download"),
+ url(r'^download/(?P<group>[\w\-]+)/$', 'download', name="customers-download"),
+ url(r'^find/download$', 'download', name="customers-download_search"),
+ url(r'^groups/add/$', 'edit_group', name="customers-create_group"),
+ url(r'^groups/(?P<group>[\w\-]+)/edit/$', 'edit_group', name="customers-edit_group"),
+ url(r'^groups/(?P<group>[\w\-]+)/delete/$', 'delete_group', name="customers-delete_group"),
+ url(r'^(?P<group>[\w\-]+)/$', 'index', name="customers-list"),
+ url(r'^(?P<group>[\w\-]+)/upload/$', 'upload', name="customers-upload"),
+ url(r'^(?P<group>[\w\-]+)/add/$', 'edit', name="customers-create_customer"),
+ url(r'^(?P<group>[\w\-]+)/(?P<pk>\d+)/$', 'view', name="customers-view_customer"),
+ url(r'^(?P<group>[\w\-]+)/(?P<pk>\d+)/edit/$', 'edit', name="customers-edit_customer"),
+ url(r'^(?P<group>[\w\-]+)/(?P<pk>\d+)/delete/$', 'delete', name="customers-delete_customer"),
+ url(r'^(?P<pk>\d+)/move/$', 'move', name="customers-move_customer"),
+ url(r'^(?P<pk>\d+)/move/(?P<new_parent>\d+)/$', 'move', name="customers-move_customer"),
+ url(r'^(?P<pk>\d+)/merge/$', 'merge', name="customers-merge_customer"),
+ url(r'^(?P<pk>\d+)/merge/(?P<target>\d+)/$', 'merge', name="customers-merge_customer"),
+ url(r'^(?P<parent_id>\d+)/new/$', 'edit', name="customers-create_contact"),
+ url(r'^(\d+)/orders/(\d+)/$', 'add_order', name="customers-add_to_order"),
+ url(r'^(?P<pk>\d+)/notes/$', 'notes', name="customers-list_notes"),
+ url(r'^(?P<pk>\d+)/notes/new/$', 'create_message', name="customers-create_message"),
+)