Redesigns Multiple Select Filter Widget
[pharos-tools.git] / dashboard / src / booking / urls.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 # Copyright (c) 2018 Parker Berberian, Sawyer Bergeron, and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11
12 """pharos_dashboard URL Configuration
13
14 The `urlpatterns` list routes URLs to views. For more information please see:
15     https://docs.djangoproject.com/en/1.10/topics/http/urls/
16 Examples:
17 Function views
18     1. Add an import:  from my_app import views
19     2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
20 Class-based views
21     1. Add an import:  from other_app.views import Home
22     2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
23 Including another URLconf
24     1. Import the include() function: from django.conf.urls import url, include
25     2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
26 """
27 from django.conf.urls import url
28
29 from booking.views import (
30     booking_detail_view,
31     BookingDeleteView,
32     bookingDelete,
33     BookingListView,
34     booking_stats_view,
35     booking_stats_json,
36     quick_create,
37     booking_modify_image
38 )
39
40 app_name = "booking"
41 urlpatterns = [
42
43
44     url(r'^detail/(?P<booking_id>[0-9]+)/$', booking_detail_view, name='detail'),
45     url(r'^(?P<booking_id>[0-9]+)/$', booking_detail_view, name='booking_detail'),
46     url(r'^delete/$', BookingDeleteView.as_view(), name='delete_prefix'),
47     url(r'^delete/(?P<booking_id>[0-9]+)/$', BookingDeleteView.as_view(), name='delete'),
48     url(r'^delete/(?P<booking_id>[0-9]+)/confirm/$', bookingDelete, name='delete_booking'),
49     url(r'^modify/(?P<booking_id>[0-9]+)/image/$', booking_modify_image, name='modify_booking_image'),
50     url(r'^list/$', BookingListView.as_view(), name='list'),
51     url(r'^stats/$', booking_stats_view, name='stats'),
52     url(r'^stats/json$', booking_stats_json, name='stats_json'),
53     url(r'^quick/$', quick_create, name='quick_create'),
54 ]