2020-12-27 10:49:54 +00:00
|
|
|
# Copyright (C) 2020 by Animath
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
2021-01-21 21:12:36 +00:00
|
|
|
from .views import AddOrganizerView, AdultPhotoAuthorizationTemplateView, ChildPhotoAuthorizationTemplateView, \
|
2024-02-18 23:17:14 +00:00
|
|
|
InstructionsTemplateView, MyAccountDetailView, ParentalAuthorizationTemplateView, \
|
2024-02-23 22:05:10 +00:00
|
|
|
PaymentHelloAssoReturnView, PaymentRedirectHelloAssoView, PaymentUpdateGroupView, PaymentUpdateView, \
|
2021-01-21 20:44:43 +00:00
|
|
|
ResetAdminView, SignupView, UserDetailView, UserImpersonateView, UserListView, UserResendValidationEmailView, \
|
|
|
|
UserUpdateView, UserUploadHealthSheetView, UserUploadParentalAuthorizationView, UserUploadPhotoAuthorizationView, \
|
2023-02-19 23:38:57 +00:00
|
|
|
UserUploadVaccineSheetView, UserValidateView, UserValidationEmailSentView
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
app_name = "registration"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("signup/", SignupView.as_view(), name="signup"),
|
2021-01-14 20:07:09 +00:00
|
|
|
path("add-organizer/", AddOrganizerView.as_view(), name="add_organizer"),
|
2020-12-27 10:49:54 +00:00
|
|
|
path('validate_email/sent/', UserValidationEmailSentView.as_view(), name='email_validation_sent'),
|
|
|
|
path('validate_email/resend/<int:pk>/', UserResendValidationEmailView.as_view(),
|
|
|
|
name='email_validation_resend'),
|
|
|
|
path('validate_email/<uidb64>/<token>/', UserValidateView.as_view(), name='email_validation'),
|
|
|
|
path("user/", MyAccountDetailView.as_view(), name="my_account_detail"),
|
|
|
|
path("user/<int:pk>/", UserDetailView.as_view(), name="user_detail"),
|
|
|
|
path("user/<int:pk>/update/", UserUpdateView.as_view(), name="update_user"),
|
|
|
|
path("user/<int:pk>/upload-photo-authorization/", UserUploadPhotoAuthorizationView.as_view(),
|
|
|
|
name="upload_user_photo_authorization"),
|
2024-04-07 09:40:58 +00:00
|
|
|
path("user/<int:pk>/upload-photo-authorization/final/", UserUploadPhotoAuthorizationView.as_view(),
|
|
|
|
name="upload_user_photo_authorization_final"),
|
2021-01-21 20:44:43 +00:00
|
|
|
path("parental-authorization-template/", ParentalAuthorizationTemplateView.as_view(),
|
|
|
|
name="parental_authorization_template"),
|
|
|
|
path("photo-authorization-template/adult/", AdultPhotoAuthorizationTemplateView.as_view(),
|
|
|
|
name="photo_authorization_adult_template"),
|
|
|
|
path("photo-authorization-template/child/", ChildPhotoAuthorizationTemplateView.as_view(),
|
|
|
|
name="photo_authorization_child_template"),
|
|
|
|
path("instructions-template/", InstructionsTemplateView.as_view(), name="instructions_template"),
|
2021-01-21 20:55:19 +00:00
|
|
|
path("user/<int:pk>/upload-health-sheet/", UserUploadHealthSheetView.as_view(),
|
2020-12-29 15:14:56 +00:00
|
|
|
name="upload_user_health_sheet"),
|
2023-02-19 23:38:57 +00:00
|
|
|
path("user/<int:pk>/upload-vaccine-sheet/", UserUploadVaccineSheetView.as_view(),
|
|
|
|
name="upload_user_vaccine_sheet"),
|
2020-12-29 15:14:56 +00:00
|
|
|
path("user/<int:pk>/upload-parental-authorization/", UserUploadParentalAuthorizationView.as_view(),
|
|
|
|
name="upload_user_parental_authorization"),
|
2024-04-07 09:40:58 +00:00
|
|
|
path("user/<int:pk>/upload-parental-authorization/final/", UserUploadParentalAuthorizationView.as_view(),
|
|
|
|
name="upload_user_parental_authorization_final"),
|
2021-01-18 19:02:49 +00:00
|
|
|
path("update-payment/<int:pk>/", PaymentUpdateView.as_view(), name="update_payment"),
|
2024-02-18 22:02:27 +00:00
|
|
|
path("update-payment/<int:pk>/toggle-group-mode/", PaymentUpdateGroupView.as_view(),
|
|
|
|
name="update_payment_group_mode"),
|
2024-02-23 22:05:10 +00:00
|
|
|
path("update-payment/<int:pk>/hello-asso/", PaymentRedirectHelloAssoView.as_view(), name="payment_hello_asso"),
|
2024-02-20 21:54:12 +00:00
|
|
|
path("update-payment/<int:pk>/hello-asso/return/", PaymentHelloAssoReturnView.as_view(),
|
|
|
|
name="payment_hello_asso_return"),
|
2020-12-27 10:49:54 +00:00
|
|
|
path("user/<int:pk>/impersonate/", UserImpersonateView.as_view(), name="user_impersonate"),
|
|
|
|
path("user/list/", UserListView.as_view(), name="user_list"),
|
|
|
|
path("reset-admin/", ResetAdminView.as_view(), name="reset_admin"),
|
|
|
|
]
|