|
@@ -13,13 +13,21 @@ router.register(r'sharix-users', SharixUserMVS)
|
|
router.register(r'group', GroupMVS)
|
|
router.register(r'group', GroupMVS)
|
|
|
|
|
|
urlpatterns = [
|
|
urlpatterns = [
|
|
- #path('auth/', LoginSharix.as_view(), name='auth'),
|
|
|
|
|
|
+ path('', login_required(IndexView.as_view()), name='home'),
|
|
|
|
+ path('transactions/', login_required(TransactionsView.as_view()), name='transactions'),
|
|
|
|
+ path('payment/', login_required(PaymentView.as_view()), name='payment'),
|
|
|
|
+ # Страница "Сотрудничество" (запрос на подключение к сервису)
|
|
|
|
+ path('cooperate/', login_required(CooperateView.as_view()), name='cooperate'),
|
|
|
|
+ # Страница "О партнере"
|
|
|
|
+ path('partner/', login_required(PartnerDetailView.as_view()), name='partner_detail'),
|
|
|
|
+ path('partner/edit/', login_required(PartnerEditView.as_view()), name='partner_edit'),
|
|
|
|
+
|
|
|
|
+
|
|
path('accounts/login/', LoginSharix.as_view(), name='authweb'),
|
|
path('accounts/login/', LoginSharix.as_view(), name='authweb'),
|
|
- path('', index, name='home'),
|
|
|
|
- path('transactions/', transactions, name='trans'),
|
|
|
|
path('transactions/<int:trans_id>/', trans_id, name='transid'),
|
|
path('transactions/<int:trans_id>/', trans_id, name='transid'),
|
|
path('logout/', logout_view, name='logoutweb'),
|
|
path('logout/', logout_view, name='logoutweb'),
|
|
path('balance/', balance, name='balance'),
|
|
path('balance/', balance, name='balance'),
|
|
|
|
+
|
|
path('payment/', login_required(paymentView), name='payment'),
|
|
path('payment/', login_required(paymentView), name='payment'),
|
|
path('payment_way/', login_required(paymentWayView), name='payment_way'),
|
|
path('payment_way/', login_required(paymentWayView), name='payment_way'),
|
|
|
|
|
|
@@ -47,8 +55,6 @@ urlpatterns = [
|
|
path('provider/', login_required(ProviderListView.as_view()), name='provider'),
|
|
path('provider/', login_required(ProviderListView.as_view()), name='provider'),
|
|
path('provider/change_status/', change_provider_status, name='provider/change_status'),
|
|
path('provider/change_status/', change_provider_status, name='provider/change_status'),
|
|
|
|
|
|
- path('cooperate/', login_required(CooperateView.as_view()), name="cooperate"),
|
|
|
|
-
|
|
|
|
path('service_tariff/', login_required(ServiceTariffListView.as_view()), name='service_tariff'),
|
|
path('service_tariff/', login_required(ServiceTariffListView.as_view()), name='service_tariff'),
|
|
path('service_tariff/add/', login_required(ServiceTariffCreate.as_view()), name='service_tariff/add/'),
|
|
path('service_tariff/add/', login_required(ServiceTariffCreate.as_view()), name='service_tariff/add/'),
|
|
path('service_tariff/edit/<int:pk>', login_required(ServiceTariffUpdateView.as_view()), name='service_tariff/edit/'),
|
|
path('service_tariff/edit/<int:pk>', login_required(ServiceTariffUpdateView.as_view()), name='service_tariff/edit/'),
|
|
@@ -65,9 +71,9 @@ urlpatterns = [
|
|
path('service/', ServiceListView.as_view(), name='service'),
|
|
path('service/', ServiceListView.as_view(), name='service'),
|
|
path('service/change_status/', change_service_status, name='service/change_status'),
|
|
path('service/change_status/', change_service_status, name='service/change_status'),
|
|
|
|
|
|
- path('partner_information/', login_required(PartnerInfoView.as_view()), name='partner_information/'),
|
|
|
|
- path('partner_information/add/', login_required(PartnerInformationCreate.as_view()), name='partner_information/add/'),
|
|
|
|
- path('partner_information/edit/<int:pk>', login_required(PartnerInformationUpdateView.as_view()), name='partner_information/edit/'),
|
|
|
|
|
|
+ #path('partner_information/', login_required(PartnerInfoView.as_view()), name='partner_information/'),
|
|
|
|
+ #path('partner_information/add/', login_required(PartnerInformationCreate.as_view()), name='partner_information/add/'),
|
|
|
|
+ #path('partner_information/edit/<int:pk>', login_required(PartnerInformationUpdateView.as_view()), name='partner_information/edit/'),
|
|
|
|
|
|
path('user_information', login_required(UserListView.as_view()), name='user_information'),
|
|
path('user_information', login_required(UserListView.as_view()), name='user_information'),
|
|
path('user_information/delete/<int:pk>', login_required(UserDelete.as_view()), name='user_information/delete/'),
|
|
path('user_information/delete/<int:pk>', login_required(UserDelete.as_view()), name='user_information/delete/'),
|