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