This repository has been archived on 2026-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
RepApp/rc_hip/repapp/urls.py

67 lines
3 KiB
Python
Raw Normal View History

2023-04-18 19:13:30 +00:00
"""
Urls of RepApp.
"""
2023-04-16 11:01:31 +00:00
from django.urls import path
from . import views
urlpatterns = [
2023-04-18 18:04:32 +00:00
path("", views.IndexView.as_view(), name="index"),
2023-04-19 19:28:59 +00:00
path(
"cafe/<int:cafe>/",
2023-04-19 19:28:59 +00:00
views.RegisterDeviceFormView.as_view(),
name="register_device"
),
path(
2023-04-21 16:24:31 +00:00
"cafe/<int:cafe>/device/<str:device_identifier>/mail/<str:mail>/",
2023-04-19 19:28:59 +00:00
views.RegisterGuestFormView.as_view(),
name="register_guest"
),
2023-04-21 16:24:31 +00:00
path("cafe/<int:cafe>/device/<str:device_identifier>/confirm/",
2023-04-19 19:28:59 +00:00
views.register_device_final, name="register_device_final"),
2023-04-21 16:24:31 +00:00
path("device/<str:device_identifier>/",
views.device_view, name="view_device"),
2023-04-23 11:56:52 +00:00
path("guest/profile/",
views.profile, name="guest_profile"),
2023-04-27 09:09:41 +00:00
path("onetimelogin/<str:secret>/",
views.one_time_login, name="one_time_login"),
path("member/", views.member, name="member"),
2023-06-18 07:01:14 +00:00
path("member/settings/", views.MemberSettingsFormView.as_view(),
name="member_settings"),
2023-05-29 14:58:36 +00:00
path("logout/", views.user_logout, name="logout"),
path("orga/select/", views.select_role, name="select_role"),
path("orga/", views.orga, name="orga"),
2023-05-29 14:58:36 +00:00
path("orga/review/<int:device>/", views.review_device, name="review_device"),
path("orga/review/<int:device>/accept/",
views.review_device_accept, name="review_device_accept"),
path("orga/review/<int:device>/reject/",
views.RejectDeviceFormView.as_view(), name="review_device_reject"),
path("member/device/<int:device>/question/",
views.QuestionDeviceFormView.as_view(), name="device_question"),
path("member/device/<int:pk>/question/edit",
views.QuestionUpdateView.as_view(), name="edit_device_question"),
path("member/question/<int:question>/",
views.question, name="view_device_question"),
2023-05-29 15:11:17 +00:00
path("member/question/",
views.questions, name="device_questions"),
path("repa/", views.repa, name="repa"),
path("repa/<int:cafe>/accept", views.repa_cafe_accept, name="repa_cafe_accept"),
path("repa/<int:cafe>/decline",
views.repa_cafe_decline, name="repa_cafe_decline"),
path("repa/<int:device>/",
views.repa_view_device, name="repa_view_device"),
path("repa/<int:device>/assign",
views.repa_device_assign, name="repa_device_assign"),
path("repa/<int:device>/unassign",
views.repa_device_unassign, name="repa_device_unassign"),
path("cafe/", views.CafeView.as_view(), name="cafe"),
path("cafe/create", views.CafeCreateView.as_view(), name="create_cafe"),
path("cafe/<int:pk>/edit", views.CafeUpdateView.as_view(), name="edit_cafe"),
path("cafe/<int:pk>/delete",
views.CafeDeleteView.as_view(), name="delete_cafe"),
path("guest/", views.GuestView.as_view(), name="guest"),
path("guest/<int:pk>/edit", views.GuestUpdateView.as_view(), name="edit_guest"),
2023-04-24 16:02:43 +00:00
path("cron", views.cron, name="cron"),
2023-04-28 09:54:13 +00:00
path("bootstrap", views.bootstrap, name="bootstrap"),
2023-04-24 16:02:43 +00:00
path("process_mails", views.process_mails, name="process_mails"),
2023-04-16 11:01:31 +00:00
]