2022-06-30 11:01:17 +02:00
|
|
|
from django.urls import re_path
|
2018-10-06 12:35:49 +02:00
|
|
|
|
2016-07-18 18:46:48 +02:00
|
|
|
from bda import views
|
2018-10-06 12:35:49 +02:00
|
|
|
from bda.views import SpectacleListView
|
|
|
|
from gestioncof.decorators import buro_required
|
2016-06-08 22:28:38 +02:00
|
|
|
|
2016-07-18 18:46:48 +02:00
|
|
|
urlpatterns = [
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^inscription/(?P<tirage_id>\d+)$",
|
2016-07-18 18:46:48 +02:00
|
|
|
views.inscription,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-tirage-inscription",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(r"^places/(?P<tirage_id>\d+)$", views.places, name="bda-places-attribuees"),
|
|
|
|
re_path(
|
|
|
|
r"^etat-places/(?P<tirage_id>\d+)$", views.etat_places, name="bda-etat-places"
|
|
|
|
),
|
|
|
|
re_path(r"^tirage/(?P<tirage_id>\d+)$", views.tirage, name="bda-tirage"),
|
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^spectacles/(?P<tirage_id>\d+)$",
|
2016-08-27 15:08:36 +02:00
|
|
|
buro_required(SpectacleListView.as_view()),
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-liste-spectacles",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^spectacles/(?P<tirage_id>\d+)/(?P<spectacle_id>\d+)$",
|
2016-07-18 18:46:48 +02:00
|
|
|
views.spectacle,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-spectacle",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2019-06-08 15:04:55 +02:00
|
|
|
r"^spectacles/unpaid/(?P<tirage_id>\d+)$",
|
|
|
|
views.UnpaidParticipants.as_view(),
|
|
|
|
name="bda-unpaid",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^spectacles/autocomplete$",
|
2017-11-19 18:41:39 +01:00
|
|
|
views.spectacle_autocomplete,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-spectacle-autocomplete",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^participants/autocomplete$",
|
2017-11-19 18:41:39 +01:00
|
|
|
views.participant_autocomplete,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-participant-autocomplete",
|
|
|
|
),
|
2017-10-23 18:39:45 +02:00
|
|
|
# Urls BdA-Revente
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<tirage_id>\d+)/manage$",
|
2017-10-23 18:39:45 +02:00
|
|
|
views.revente_manage,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-manage",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<tirage_id>\d+)/subscribe$",
|
2017-10-23 18:39:45 +02:00
|
|
|
views.revente_subscribe,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-subscribe",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<tirage_id>\d+)/tirages$",
|
2017-10-23 17:25:58 +02:00
|
|
|
views.revente_tirages,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-tirages",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<spectacle_id>\d+)/buy$",
|
2017-10-23 18:39:45 +02:00
|
|
|
views.revente_buy,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-buy",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<revente_id>\d+)/confirm$",
|
2017-10-23 18:39:45 +02:00
|
|
|
views.revente_confirm,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-confirm",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
2018-10-06 12:35:49 +02:00
|
|
|
r"^revente/(?P<tirage_id>\d+)/shotgun$",
|
2016-10-13 16:01:30 +02:00
|
|
|
views.revente_shotgun,
|
2018-10-06 12:35:49 +02:00
|
|
|
name="bda-revente-shotgun",
|
|
|
|
),
|
2022-06-30 11:01:17 +02:00
|
|
|
re_path(
|
|
|
|
r"^mails-rappel/(?P<spectacle_id>\d+)$", views.send_rappel, name="bda-rappels"
|
|
|
|
),
|
|
|
|
re_path(
|
|
|
|
r"^catalogue/(?P<request_type>[a-z]+)$", views.catalogue, name="bda-catalogue"
|
|
|
|
),
|
2016-07-18 18:46:48 +02:00
|
|
|
]
|