2017-04-24 15:51:12 +00:00
|
|
|
# -*- coding:utf-8 -*
|
|
|
|
#
|
|
|
|
# Copyright 2016,2017
|
|
|
|
# - Skia <skia@libskia.so>
|
|
|
|
#
|
|
|
|
# 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-03-09 12:39:33 +00:00
|
|
|
from django.urls import path
|
2016-12-21 01:38:21 +00:00
|
|
|
|
2017-08-21 17:53:17 +00:00
|
|
|
from club.views import MailingDeleteView
|
2023-03-09 12:39:33 +00:00
|
|
|
from com.views import *
|
2016-12-21 01:38:21 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2023-03-09 12:39:33 +00:00
|
|
|
path("sith/edit/alert/", AlertMsgEditView.as_view(), name="alert_edit"),
|
|
|
|
path("sith/edit/info/", InfoMsgEditView.as_view(), name="info_edit"),
|
|
|
|
path(
|
|
|
|
"sith/edit/weekmail_destinations/",
|
2018-10-04 19:29:19 +00:00
|
|
|
WeekmailDestinationEditView.as_view(),
|
|
|
|
name="weekmail_destinations",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path("weekmail/", WeekmailEditView.as_view(), name="weekmail"),
|
|
|
|
path("weekmail/preview/", WeekmailPreviewView.as_view(), name="weekmail_preview"),
|
|
|
|
path(
|
|
|
|
"weekmail/new_article/",
|
2018-10-04 19:29:19 +00:00
|
|
|
WeekmailArticleCreateView.as_view(),
|
|
|
|
name="weekmail_article",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"weekmail/article/<int:article_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
WeekmailArticleDeleteView.as_view(),
|
|
|
|
name="weekmail_article_delete",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"weekmail/article/<int:article_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
WeekmailArticleEditView.as_view(),
|
|
|
|
name="weekmail_article_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path("news/", NewsListView.as_view(), name="news_list"),
|
|
|
|
path("news/admin/", NewsAdminListView.as_view(), name="news_admin_list"),
|
|
|
|
path("news/create/", NewsCreateView.as_view(), name="news_new"),
|
|
|
|
path(
|
|
|
|
"news/<int:news_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
NewsDeleteView.as_view(),
|
|
|
|
name="news_delete",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"news/<int:news_id>/moderate/",
|
2018-10-04 19:29:19 +00:00
|
|
|
NewsModerateView.as_view(),
|
|
|
|
name="news_moderate",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path("news/<int:news_id>/edit/", NewsEditView.as_view(), name="news_edit"),
|
|
|
|
path("news/<int:news_id>/", NewsDetailView.as_view(), name="news_detail"),
|
|
|
|
path("mailings/", MailingListAdminView.as_view(), name="mailing_admin"),
|
|
|
|
path(
|
|
|
|
"mailings/<int:mailing_id>/moderate/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MailingModerateView.as_view(),
|
|
|
|
name="mailing_moderate",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"mailings/<int:mailing_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
MailingDeleteView.as_view(redirect_page="com:mailing_admin"),
|
|
|
|
name="mailing_delete",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path("poster/", PosterListView.as_view(), name="poster_list"),
|
|
|
|
path("poster/create/", PosterCreateView.as_view(), name="poster_create"),
|
|
|
|
path(
|
|
|
|
"poster/<int:poster_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterEditView.as_view(),
|
|
|
|
name="poster_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"poster/<int:poster_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterDeleteView.as_view(),
|
|
|
|
name="poster_delete",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"poster/moderate/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterModerateListView.as_view(),
|
|
|
|
name="poster_moderate_list",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"poster/<int:object_id>/moderate/",
|
2018-10-04 19:29:19 +00:00
|
|
|
PosterModerateView.as_view(),
|
|
|
|
name="poster_moderate",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path("screen/", ScreenListView.as_view(), name="screen_list"),
|
|
|
|
path("screen/create/", ScreenCreateView.as_view(), name="screen_create"),
|
|
|
|
path(
|
|
|
|
"screen/<int:screen_id>/slideshow/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ScreenSlideshowView.as_view(),
|
|
|
|
name="screen_slideshow",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"screen/<int:screen_id>/edit/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ScreenEditView.as_view(),
|
|
|
|
name="screen_edit",
|
|
|
|
),
|
2023-03-09 12:39:33 +00:00
|
|
|
path(
|
|
|
|
"screen/<int:screen_id>/delete/",
|
2018-10-04 19:29:19 +00:00
|
|
|
ScreenDeleteView.as_view(),
|
|
|
|
name="screen_delete",
|
|
|
|
),
|
2016-12-21 01:38:21 +00:00
|
|
|
]
|