2017-04-24 15:51:12 +00:00
|
|
|
# -*- coding:utf-8 -*
|
|
|
|
#
|
|
|
|
# Copyright 2016,2017
|
|
|
|
# - Skia <skia@libskia.so>
|
2017-08-16 22:07:19 +00:00
|
|
|
# - Sli <antoine@bartuccio.fr>
|
2017-04-24 15:51:12 +00:00
|
|
|
#
|
|
|
|
# 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
|
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
|
|
|
]
|