Sith/club/urls.py

107 lines
3.4 KiB
Python
Raw Normal View History

#
# Copyright 2016,2017
# - Skia <skia@libskia.so>
2017-08-16 22:07:19 +00:00
# - Sli <antoine@bartuccio.fr>
#
# Ce fichier fait partie du site de l'Association des Étudiants de l'UTBM,
# http://ae.utbm.fr.
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License a published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Sofware Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA.
#
#
2023-01-09 21:07:03 +00:00
from django.urls import path
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/",
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",
),
]