mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
103 lines
3.2 KiB
Python
103 lines
3.2 KiB
Python
# -*- coding:utf-8 -*-
|
|
#
|
|
# Copyright 2023 © AE UTBM
|
|
# ae@utbm.fr / ae.info@utbm.fr
|
|
# All contributors are listed in the CONTRIBUTORS file.
|
|
#
|
|
# This file is part of the website of the UTBM Student Association (AE UTBM),
|
|
# https://ae.utbm.fr.
|
|
#
|
|
# You can find the whole source code at https://github.com/ae-utbm/sith3
|
|
#
|
|
# LICENSED UNDER THE GNU GENERAL PUBLIC LICENSE VERSION 3 (GPLv3)
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE
|
|
# OR WITHIN THE LOCAL FILE "LICENSE"
|
|
#
|
|
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
|
|
# OR WITHIN THE LOCAL FILE "LICENSE.old"
|
|
#
|
|
|
|
from django.urls import path
|
|
|
|
from club.views import *
|
|
|
|
urlpatterns = [
|
|
path("", ClubListView.as_view(), name="club_list"),
|
|
path("new/", ClubCreateView.as_view(), name="club_new"),
|
|
path("stats/", ClubStatView.as_view(), name="club_stats"),
|
|
path("<int:club_id>/", ClubView.as_view(), name="club_view"),
|
|
path(
|
|
"<int:club_id>/rev/<int:rev_id>/",
|
|
ClubRevView.as_view(),
|
|
name="club_view_rev",
|
|
),
|
|
path("<int:club_id>/hist/", ClubPageHistView.as_view(), name="club_hist"),
|
|
path("<int:club_id>/edit/", ClubEditView.as_view(), name="club_edit"),
|
|
path(
|
|
"<int:club_id>/edit/page/",
|
|
ClubPageEditView.as_view(),
|
|
name="club_edit_page",
|
|
),
|
|
path("<int:club_id>/members/", ClubMembersView.as_view(), name="club_members"),
|
|
path(
|
|
"<int:club_id>/elderlies/",
|
|
ClubOldMembersView.as_view(),
|
|
name="club_old_members",
|
|
),
|
|
path(
|
|
"<int:club_id>/sellings/",
|
|
ClubSellingView.as_view(),
|
|
name="club_sellings",
|
|
),
|
|
path(
|
|
"<int:club_id>/sellings/csv/",
|
|
ClubSellingCSVView.as_view(),
|
|
name="sellings_csv",
|
|
),
|
|
path("<int:club_id>/prop/", ClubEditPropView.as_view(), name="club_prop"),
|
|
path("<int:club_id>/tools/", ClubToolsView.as_view(), name="tools"),
|
|
path("<int:club_id>/mailing/", ClubMailingView.as_view(), name="mailing"),
|
|
path(
|
|
"<int:mailing_id>/mailing/generate/",
|
|
MailingAutoGenerationView.as_view(),
|
|
name="mailing_generate",
|
|
),
|
|
path(
|
|
"<int:mailing_id>/mailing/delete/",
|
|
MailingDeleteView.as_view(),
|
|
name="mailing_delete",
|
|
),
|
|
path(
|
|
"<int:mailing_subscription_id>/mailing/delete/subscription/",
|
|
MailingSubscriptionDeleteView.as_view(),
|
|
name="mailing_subscription_delete",
|
|
),
|
|
path(
|
|
"membership/<int:membership_id>/set_old/",
|
|
MembershipSetOldView.as_view(),
|
|
name="membership_set_old",
|
|
),
|
|
path(
|
|
"membership/<int:membership_id>/delete/",
|
|
MembershipDeleteView.as_view(),
|
|
name="membership_delete",
|
|
),
|
|
path("<int:club_id>/poster/", PosterListView.as_view(), name="poster_list"),
|
|
path(
|
|
"<int:club_id>/poster/create/",
|
|
PosterCreateView.as_view(),
|
|
name="poster_create",
|
|
),
|
|
path(
|
|
"<int:club_id>/poster/<int:poster_id>/edit/",
|
|
PosterEditView.as_view(),
|
|
name="poster_edit",
|
|
),
|
|
path(
|
|
"<int:club_id>/poster/<int:poster_id>/delete/",
|
|
PosterDeleteView.as_view(),
|
|
name="poster_delete",
|
|
),
|
|
]
|