2016-07-28 18:05:56 +00:00
|
|
|
from django.conf.urls import url, include
|
|
|
|
|
|
|
|
from launderette.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
# views
|
|
|
|
url(r'^$', LaunderetteMainView.as_view(), name='launderette_main'),
|
2016-12-15 15:11:43 +00:00
|
|
|
url(r'^slot/(?P<slot_id>[0-9]+)/delete$', SlotDeleteView.as_view(), name='delete_slot'),
|
2016-07-28 18:05:56 +00:00
|
|
|
url(r'^book$', LaunderetteBookMainView.as_view(), name='book_main'),
|
|
|
|
url(r'^book/(?P<launderette_id>[0-9]+)$', LaunderetteBookView.as_view(), name='book_slot'),
|
2016-08-01 14:36:16 +00:00
|
|
|
url(r'^(?P<launderette_id>[0-9]+)/click$', LaunderetteMainClickView.as_view(), name='main_click'),
|
|
|
|
url(r'^(?P<launderette_id>[0-9]+)/click/(?P<user_id>[0-9]+)$', LaunderetteClickView.as_view(), name='click'),
|
2016-07-28 18:05:56 +00:00
|
|
|
url(r'^admin$', LaunderetteListView.as_view(), name='launderette_list'),
|
2016-08-06 13:20:38 +00:00
|
|
|
url(r'^admin/(?P<launderette_id>[0-9]+)$', LaunderetteAdminView.as_view(), name='launderette_admin'),
|
2016-07-28 18:05:56 +00:00
|
|
|
url(r'^admin/(?P<launderette_id>[0-9]+)/edit$', LaunderetteEditView.as_view(), name='launderette_edit'),
|
|
|
|
url(r'^admin/new$', LaunderetteCreateView.as_view(), name='launderette_new'),
|
2016-07-29 11:00:32 +00:00
|
|
|
url(r'^admin/machine/new$', MachineCreateView.as_view(), name='machine_new'),
|
|
|
|
url(r'^admin/machine/(?P<machine_id>[0-9]+)/edit$', MachineEditView.as_view(), name='machine_edit'),
|
|
|
|
url(r'^admin/machine/(?P<machine_id>[0-9]+)/delete$', MachineDeleteView.as_view(), name='machine_delete'),
|
2016-07-28 18:05:56 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|