64 lines
4.2 KiB
Python
64 lines
4.2 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
|
app_name = 'accounts'
|
|
|
|
urlpatterns = [
|
|
path('login/', views.AdminLoginView.as_view(), name='login'),
|
|
path('logout/', views.AdminLogoutView.as_view(), name='logout'),
|
|
path('password-reset/', views.CustomPasswordResetView.as_view(), name='password_reset'),
|
|
path('password-reset/done/', views.CustomPasswordResetDoneView.as_view(), name='password_reset_done'),
|
|
path('password-reset-confirm/<uidb64>/<token>/', views.CustomPasswordResetConfirmView.as_view(), name='password_reset_confirm'),
|
|
path('password-reset-complete/', views.CustomPasswordResetCompleteView.as_view(), name='password_reset_complete'),
|
|
|
|
# path('add/user/', views.PrinicpalCreateView.as_view(), name='register'),
|
|
|
|
path('manage-customer/', TemplateView.as_view(template_name='manage_customer/manage_customer.html'), name='manage_customer'),
|
|
path('manage-customer/edit/', TemplateView.as_view(template_name='manage_customer/edit_customer.html'), name='edit_customer'),
|
|
path('manage-customer/view/', TemplateView.as_view(template_name='manage_customer/view_customer.html'), name='view_customer'),
|
|
|
|
path('principal/', views.PrincipalListView.as_view(), name="principal_list"),
|
|
path('principal/add/', views.PrincipalCreateOrUpdateView.as_view(), name="principal_add"),
|
|
path('principal/edit/<int:pk>', views.PrincipalCreateOrUpdateView.as_view(), name="principal_edit"),
|
|
# path('principal/delete/<int:pk>', views.PrincipalDeleteView.as_view(), name="principal_delete"),
|
|
path('principal/resource/permission/edit/<int:pk>/', views.PrincipalResourcePermissionEditView.as_view(),
|
|
name="principal_resource_permission_edit"),
|
|
|
|
path('principal/group/link/', views.PrincipalGroupLinkListView.as_view(), name="principal_group_link_list"),
|
|
path('principal/group/link/edit/<int:pk>/', views.PrincipalGroupLinkEditView.as_view(), name="principal_group_link_edit"),
|
|
|
|
|
|
path('principal/group/', views.PrincipalGroupListView.as_view(), name="principal_group_list"),
|
|
path('principal/group/add/', views.PrincipalGroupCreateOrUpdateView.as_view(), name="principal_group_add"),
|
|
path('principal/group/edit/<int:pk>/', views.PrincipalGroupCreateOrUpdateView.as_view(), name="principal_group_edit"),
|
|
path('principal/group/delete/<int:pk>/', views.PrincipalGroupDeleteView.as_view(), name="principal_group_delete"),
|
|
|
|
path('principal/role/', views.AppRoleListView.as_view(), name="role_list"),
|
|
path('principal/role/add/', views.AppRoleCreateOrUpdateView.as_view(), name="role_add"),
|
|
path('principal/role/edit/<int:pk>/', views.AppRoleCreateOrUpdateView.as_view(), name="role_edit"),
|
|
path('principal/role/delete/<int:pk>/', views.AppRoleDeleteView.as_view(), name="role_delete"),
|
|
|
|
path('customer/', views.CustomerListView.as_view(), name="customer_list"),
|
|
path('customer/get-decrypted-password/<int:customer_id>/', views.GetDecryptedPasswordView.as_view(), name='get_decrypted_password'),
|
|
path('customer/add/', views.CustomerCreateView.as_view(), name="customer_add"),
|
|
path('customer/edit/<int:pk>/', views.CustomerUpdateView.as_view(), name="customer_edit"),
|
|
path('customer/detail/<int:pk>/', views.CustomerDetailView.as_view(), name="customer_detail"),
|
|
path('customer/transfer/<int:pk>/', views.CustomerTransferView.as_view(), name="customer_transfer"),
|
|
path('customer/check-email/', views.CustomerCheckEmail.as_view(), name="customer_check_email"),
|
|
path('customer/download-excel-template/', views.export_excel_template, name='download_excel_template'),
|
|
path('customer/import-customer-data/', views.CustomerImportView.as_view(), name='import_customer_data'),
|
|
path('customer/export-customer-data/', views.CustomerExportView.as_view(), name='export_customer_data'),
|
|
|
|
# ignore this to path this for example setup
|
|
path('principal/example/', TemplateView.as_view(template_name="accounts/iam_module/example_form.html"), name="example_add"),
|
|
path('datatable/', views.DatatableListView.as_view(), name="serverside_list"),
|
|
# ignore end
|
|
|
|
path('profile/', views.PrincipalProfileView.as_view(), name="profile_details"),
|
|
path('profile/edit/', views.PrincipalProfileEditView.as_view(), name="profile_details_edit"),
|
|
|
|
]
|