diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2018-02-13 17:53:56 -0500 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2018-02-19 21:16:25 +0000 |
commit | 936a1a26401dc39e12209d9ff94404351a646d17 (patch) | |
tree | 68a3cbefb852a316c3ce54813432c93b8e43b2c1 /dashboard/src/booking/urls.py | |
parent | 1fd014d20886727b3c8eb1861afb58b91c2dfa74 (diff) |
Provide Interface for Booking Deletion
Jira: PHAROS-355
User can now delete their own booking by going to the detail view of their booking
and clicking 'delete'
Change-Id: I279da364c2a5dfd03b877d1236c610d0fef563bc
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'dashboard/src/booking/urls.py')
-rw-r--r-- | dashboard/src/booking/urls.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/dashboard/src/booking/urls.py b/dashboard/src/booking/urls.py index 403e32f..ed3b1d4 100644 --- a/dashboard/src/booking/urls.py +++ b/dashboard/src/booking/urls.py @@ -30,11 +30,17 @@ from booking.views import * urlpatterns = [ url(r'^(?P<resource_id>[0-9]+)/$', BookingFormView.as_view(), name='create'), url(r'^(?P<resource_id>[0-9]+)/edit/(?P<booking_id>[0-9]+)/$', BookingEditFormView.as_view(), name='edit'), + url(r'^(?P<resource_id>[0-9]+)/bookings_json/$', ResourceBookingsJSON.as_view(), name='bookings_json'), url(r'^detail/$', BookingView.as_view(), name='detail_prefix'), url(r'^detail/(?P<booking_id>[0-9]+)/$', BookingView.as_view(), name='detail'), + url(r'^delete/$', BookingDeleteView.as_view(), name='delete_prefix'), + url(r'^delete/(?P<booking_id>[0-9]+)/$', BookingDeleteView.as_view(), name='delete'), + + url(r'^delete/(?P<booking_id>[0-9]+)/confirm/$', bookingDelete, name='delete_booking'), + url(r'^list/$', BookingListView.as_view(), name='list') -] +]
\ No newline at end of file |