2023-04-06 11:08:42 +00:00
|
|
|
# -*- coding:utf-8 -*-
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-06 11:08:42 +00:00
|
|
|
# Copyright 2023 © AE UTBM
|
|
|
|
# ae@utbm.fr / ae.info@utbm.fr
|
|
|
|
# All contributors are listed in the CONTRIBUTORS file.
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-06 11:08:42 +00:00
|
|
|
# This file is part of the website of the UTBM Student Association (AE UTBM),
|
|
|
|
# https://ae.utbm.fr.
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-06 11:08:42 +00:00
|
|
|
# You can find the whole source code at https://github.com/ae-utbm/sith3
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-06 11:08:42 +00:00
|
|
|
# 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"
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
2023-04-06 11:08:42 +00:00
|
|
|
# PREVIOUSLY LICENSED UNDER THE MIT LICENSE,
|
|
|
|
# SEE : https://raw.githubusercontent.com/ae-utbm/sith3/master/LICENSE.old
|
|
|
|
# OR WITHIN THE LOCAL FILE "LICENSE.old"
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
|
|
|
|
2023-01-09 21:07:03 +00:00
|
|
|
from django.urls import path
|
2016-02-02 15:34:36 +00:00
|
|
|
|
|
|
|
from club.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-01-09 21:07:03 +00:00
|
|
|
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>/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubRevView.as_view(),
|
|
|
|
name="club_view_rev",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
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/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubPageEditView.as_view(),
|
|
|
|
name="club_edit_page",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("<int:club_id>/members/", ClubMembersView.as_view(), name="club_members"),
|
|
|
|
path(
|
|
|
|
"<int:club_id>/elderlies/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubOldMembersView.as_view(),
|
|
|
|
name="club_old_members",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:club_id>/sellings/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubSellingView.as_view(),
|
|
|
|
name="club_sellings",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:club_id>/sellings/csv/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ClubSellingCSVView.as_view(),
|
|
|
|
name="sellings_csv",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
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/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MailingAutoGenerationView.as_view(),
|
|
|
|
name="mailing_generate",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:mailing_id>/mailing/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MailingDeleteView.as_view(),
|
|
|
|
name="mailing_delete",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:mailing_subscription_id>/mailing/delete/subscription/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MailingSubscriptionDeleteView.as_view(),
|
|
|
|
name="mailing_subscription_delete",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"membership/<int:membership_id>/set_old/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MembershipSetOldView.as_view(),
|
|
|
|
name="membership_set_old",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"membership/<int:membership_id>/delete/",
|
2019-11-24 18:23:43 +00:00
|
|
|
MembershipDeleteView.as_view(),
|
|
|
|
name="membership_delete",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path("<int:club_id>/poster/", PosterListView.as_view(), name="poster_list"),
|
|
|
|
path(
|
|
|
|
"<int:club_id>/poster/create/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterCreateView.as_view(),
|
|
|
|
name="poster_create",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:club_id>/poster/<int:poster_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterEditView.as_view(),
|
|
|
|
name="poster_edit",
|
|
|
|
),
|
2023-01-09 21:07:03 +00:00
|
|
|
path(
|
|
|
|
"<int:club_id>/poster/<int:poster_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterDeleteView.as_view(),
|
|
|
|
name="poster_delete",
|
|
|
|
),
|
2016-02-02 15:34:36 +00:00
|
|
|
]
|