2021-04-13 12:44:22 +00:00
|
|
|
from django.urls import path, reverse_lazy
|
|
|
|
from django.views.generic import RedirectView
|
2021-03-23 18:23:04 +00:00
|
|
|
|
2021-05-30 10:41:30 +00:00
|
|
|
from .views import PartnerRegistrationView, PartnerProfileView, OffersListView, EstablishmentsListView, EstablishmentRequestView, PartnerDashboardView, EstablishmentVerificationView, RoomCategoryListView, EstablishmentGalleryManagementView, RoomCategoryGalleryManagementView
|
2021-03-23 18:23:04 +00:00
|
|
|
|
|
|
|
app_name = "partners"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('register/', PartnerRegistrationView.as_view(), name="register"),
|
|
|
|
path('profile/', PartnerProfileView.as_view(), name="profile"),
|
2021-04-09 15:01:33 +00:00
|
|
|
path('establishments/', EstablishmentsListView.as_view(), name="establishments"),
|
2021-04-20 06:36:59 +00:00
|
|
|
path('establishments/<int:id>/', RoomCategoryListView.as_view(), name="roomcategories"),
|
2021-05-30 10:30:14 +00:00
|
|
|
path('establishments/<int:id>/gallery/', EstablishmentGalleryManagementView.as_view(), name="establishment_gallery"),
|
2021-05-30 10:41:30 +00:00
|
|
|
path('establishments/<int:eid>/<int:cid>/gallery/', RoomCategoryGalleryManagementView.as_view(), name="roomcategory_gallery"),
|
2021-04-17 18:35:29 +00:00
|
|
|
path('establishments/validate/', EstablishmentVerificationView.as_view(), name="establishment_verify"),
|
2021-04-11 14:19:43 +00:00
|
|
|
path('establishments/register/', EstablishmentRequestView.as_view(), name="establishment_register"),
|
2021-04-08 16:34:21 +00:00
|
|
|
path('offers/', OffersListView.as_view(), name="offers"),
|
2021-04-13 12:44:22 +00:00
|
|
|
path('dashboard/', PartnerDashboardView.as_view(), name="dashboard"),
|
2021-04-14 05:42:28 +00:00
|
|
|
path('bookings/', PartnerDashboardView.as_view(), name="bookings"),
|
2021-04-13 12:44:22 +00:00
|
|
|
path('', RedirectView.as_view(url=reverse_lazy("partners:dashboard"))),
|
2021-03-23 18:23:04 +00:00
|
|
|
]
|