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
|
|
|
|
from django.views.generic import TemplateView
|
|
|
|
|
2023-04-06 21:38:03 +00:00
|
|
|
from .views import CreateTeamView, FinalNotationSheetTemplateView, JoinTeamView, MyParticipationDetailView, \
|
2024-03-29 17:59:37 +00:00
|
|
|
MyTeamDetailView, NotationSheetsArchiveView, NoteUpdateView, ParticipationDetailView, PassageCreateView, \
|
|
|
|
PassageDetailView, PassageUpdateView, PoolCreateView, PoolDetailView, PoolJuryView, PoolNotesTemplateView, \
|
2024-03-24 14:36:51 +00:00
|
|
|
PoolPresideJuryView, PoolRemoveJuryView, PoolUpdateTeamsView, PoolUpdateView, PoolUploadNotesView, \
|
2024-03-26 23:49:32 +00:00
|
|
|
ScaleNotationSheetTemplateView, SolutionsDownloadView, SolutionUploadView, SynthesisUploadView, \
|
|
|
|
TeamAuthorizationsView, TeamDetailView, TeamLeaveView, TeamListView, TeamUpdateView, \
|
|
|
|
TeamUploadMotivationLetterView, TournamentCreateView, TournamentDetailView, TournamentExportCSVView, \
|
|
|
|
TournamentListView, TournamentPaymentsView, TournamentPublishNotesView, TournamentUpdateView
|
2020-12-27 10:49:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
app_name = "participation"
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path("create_team/", CreateTeamView.as_view(), name="create_team"),
|
|
|
|
path("join_team/", JoinTeamView.as_view(), name="join_team"),
|
|
|
|
path("teams/", TeamListView.as_view(), name="team_list"),
|
|
|
|
path("team/", MyTeamDetailView.as_view(), name="my_team_detail"),
|
|
|
|
path("team/<int:pk>/", TeamDetailView.as_view(), name="team_detail"),
|
|
|
|
path("team/<int:pk>/update/", TeamUpdateView.as_view(), name="update_team"),
|
2021-01-22 08:40:28 +00:00
|
|
|
path("team/<int:pk>/upload-motivation-letter/", TeamUploadMotivationLetterView.as_view(),
|
|
|
|
name="upload_team_motivation_letter"),
|
2024-03-26 22:55:29 +00:00
|
|
|
path("team/<int:team_id>/authorizations/", TeamAuthorizationsView.as_view(), name="team_authorizations"),
|
2020-12-27 10:49:54 +00:00
|
|
|
path("team/leave/", TeamLeaveView.as_view(), name="team_leave"),
|
|
|
|
path("detail/", MyParticipationDetailView.as_view(), name="my_participation_detail"),
|
|
|
|
path("detail/<int:pk>/", ParticipationDetailView.as_view(), name="participation_detail"),
|
2021-01-12 16:24:46 +00:00
|
|
|
path("detail/<int:pk>/solution/", SolutionUploadView.as_view(), name="upload_solution"),
|
2024-03-26 23:49:32 +00:00
|
|
|
path("detail/<int:team_id>/solutions/", SolutionsDownloadView.as_view(), name="participation_solutions"),
|
2020-12-30 11:13:05 +00:00
|
|
|
path("tournament/", TournamentListView.as_view(), name="tournament_list"),
|
2020-12-31 11:13:42 +00:00
|
|
|
path("tournament/create/", TournamentCreateView.as_view(), name="tournament_create"),
|
|
|
|
path("tournament/<int:pk>/", TournamentDetailView.as_view(), name="tournament_detail"),
|
|
|
|
path("tournament/<int:pk>/update/", TournamentUpdateView.as_view(), name="tournament_update"),
|
2024-02-23 21:58:23 +00:00
|
|
|
path("tournament/<int:pk>/payments/", TournamentPaymentsView.as_view(), name="tournament_payments"),
|
2022-04-22 16:02:27 +00:00
|
|
|
path("tournament/<int:pk>/csv/", TournamentExportCSVView.as_view(), name="tournament_csv"),
|
2024-03-26 22:55:29 +00:00
|
|
|
path("tournament/<int:tournament_id>/authorizations/", TeamAuthorizationsView.as_view(),
|
|
|
|
name="tournament_authorizations"),
|
2024-03-26 23:49:32 +00:00
|
|
|
path("tournament/<int:tournament_id>/solutions/", SolutionsDownloadView.as_view(),
|
|
|
|
name="tournament_solutions"),
|
|
|
|
path("tournament/<int:tournament_id>/syntheses/", SolutionsDownloadView.as_view(),
|
|
|
|
name="tournament_syntheses"),
|
2024-03-29 17:59:37 +00:00
|
|
|
path("tournament/<int:tournament_id>/notation/sheets/", NotationSheetsArchiveView.as_view(),
|
|
|
|
name="tournament_notation_sheets"),
|
2024-03-24 17:14:43 +00:00
|
|
|
path("tournament/<int:pk>/publish-notes/<int:round>/", TournamentPublishNotesView.as_view(),
|
|
|
|
name="tournament_publish_notes"),
|
2021-01-13 16:00:50 +00:00
|
|
|
path("pools/create/", PoolCreateView.as_view(), name="pool_create"),
|
|
|
|
path("pools/<int:pk>/", PoolDetailView.as_view(), name="pool_detail"),
|
|
|
|
path("pools/<int:pk>/update/", PoolUpdateView.as_view(), name="pool_update"),
|
2024-03-26 23:49:32 +00:00
|
|
|
path("pools/<int:pool_id>/solutions/", SolutionsDownloadView.as_view(), name="pool_download_solutions"),
|
|
|
|
path("pools/<int:pool_id>/syntheses/", SolutionsDownloadView.as_view(), name="pool_download_syntheses"),
|
2023-04-06 21:38:03 +00:00
|
|
|
path("pools/<int:pk>/notation/scale/", ScaleNotationSheetTemplateView.as_view(), name="pool_scale_note_sheet"),
|
|
|
|
path("pools/<int:pk>/notation/final/", FinalNotationSheetTemplateView.as_view(), name="pool_final_note_sheet"),
|
2024-03-29 17:59:37 +00:00
|
|
|
path("pools/<int:pool_id>/notation/sheets/", NotationSheetsArchiveView.as_view(), name="pool_notation_sheets"),
|
2021-01-14 13:44:12 +00:00
|
|
|
path("pools/<int:pk>/update-teams/", PoolUpdateTeamsView.as_view(), name="pool_update_teams"),
|
2024-03-23 10:23:02 +00:00
|
|
|
path("pools/<int:pk>/jury/", PoolJuryView.as_view(), name="pool_jury"),
|
|
|
|
path("pools/<int:pk>/jury/remove/<int:jury_id>/", PoolRemoveJuryView.as_view(), name="pool_remove_jury"),
|
2024-03-24 14:36:51 +00:00
|
|
|
path("pools/<int:pk>/jury/preside/<int:jury_id>/", PoolPresideJuryView.as_view(), name="pool_preside"),
|
2022-05-15 10:23:17 +00:00
|
|
|
path("pools/<int:pk>/upload-notes/", PoolUploadNotesView.as_view(), name="pool_upload_notes"),
|
2023-04-07 19:47:06 +00:00
|
|
|
path("pools/<int:pk>/upload-notes/template/", PoolNotesTemplateView.as_view(), name="pool_notes_template"),
|
2021-01-14 14:59:11 +00:00
|
|
|
path("pools/passages/add/<int:pk>/", PassageCreateView.as_view(), name="passage_create"),
|
|
|
|
path("pools/passages/<int:pk>/", PassageDetailView.as_view(), name="passage_detail"),
|
|
|
|
path("pools/passages/<int:pk>/update/", PassageUpdateView.as_view(), name="passage_update"),
|
2021-01-14 16:26:08 +00:00
|
|
|
path("pools/passages/<int:pk>/solution/", SynthesisUploadView.as_view(), name="upload_synthesis"),
|
2021-01-14 17:21:22 +00:00
|
|
|
path("pools/passages/notes/<int:pk>/", NoteUpdateView.as_view(), name="update_notes"),
|
2020-12-27 10:49:54 +00:00
|
|
|
path("chat/", TemplateView.as_view(template_name="participation/chat.html"), name="chat")
|
|
|
|
]
|