from django.urls import re_path from bda import views from bda.views import SpectacleListView from gestioncof.decorators import buro_required urlpatterns = [ re_path( r"^inscription/(?P\d+)$", views.inscription, name="bda-tirage-inscription", ), re_path(r"^places/(?P\d+)$", views.places, name="bda-places-attribuees"), re_path( r"^etat-places/(?P\d+)$", views.etat_places, name="bda-etat-places" ), re_path(r"^tirage/(?P\d+)$", views.tirage, name="bda-tirage"), re_path( r"^spectacles/(?P\d+)$", buro_required(SpectacleListView.as_view()), name="bda-liste-spectacles", ), re_path( r"^spectacles/(?P\d+)/(?P\d+)$", views.spectacle, name="bda-spectacle", ), re_path( r"^spectacles/unpaid/(?P\d+)$", views.UnpaidParticipants.as_view(), name="bda-unpaid", ), re_path( r"^spectacles/autocomplete$", views.spectacle_autocomplete, name="bda-spectacle-autocomplete", ), re_path( r"^participants/autocomplete$", views.participant_autocomplete, name="bda-participant-autocomplete", ), # Urls BdA-Revente re_path( r"^revente/(?P\d+)/manage$", views.revente_manage, name="bda-revente-manage", ), re_path( r"^revente/(?P\d+)/subscribe$", views.revente_subscribe, name="bda-revente-subscribe", ), re_path( r"^revente/(?P\d+)/tirages$", views.revente_tirages, name="bda-revente-tirages", ), re_path( r"^revente/(?P\d+)/buy$", views.revente_buy, name="bda-revente-buy", ), re_path( r"^revente/(?P\d+)/confirm$", views.revente_confirm, name="bda-revente-confirm", ), re_path( r"^revente/(?P\d+)/shotgun$", views.revente_shotgun, name="bda-revente-shotgun", ), re_path( r"^mails-rappel/(?P\d+)$", views.send_rappel, name="bda-rappels" ), re_path( r"^catalogue/(?P[a-z]+)$", views.catalogue, name="bda-catalogue" ), ]