2016-07-15 00:02:56 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2016-06-08 22:28:38 +02:00
|
|
|
from django.conf.urls import url
|
2017-02-05 17:35:41 +01:00
|
|
|
from gestioncof.petits_cours_views import DemandeListView, DemandeDetailView
|
2016-07-18 18:46:48 +02:00
|
|
|
from gestioncof import views, petits_cours_views
|
2017-02-05 17:35:41 +01:00
|
|
|
from gestioncof.decorators import buro_required
|
2016-06-08 22:28:38 +02:00
|
|
|
|
|
|
|
export_patterns = [
|
2016-07-18 18:46:48 +02:00
|
|
|
url(r'^members$', views.export_members),
|
|
|
|
url(r'^mega/avecremarques$', views.export_mega_remarksonly),
|
|
|
|
url(r'^mega/participants$', views.export_mega_participants),
|
|
|
|
url(r'^mega/orgas$', views.export_mega_orgas),
|
2017-09-05 15:21:19 +02:00
|
|
|
# url(r'^mega/(?P<type>.+)$', views.export_mega_bytype),
|
2016-07-18 18:46:48 +02:00
|
|
|
url(r'^mega$', views.export_mega),
|
2016-06-08 22:28:38 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
petitcours_patterns = [
|
2016-07-18 18:46:48 +02:00
|
|
|
url(r'^inscription$', petits_cours_views.inscription,
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-inscription'),
|
2016-07-18 18:46:48 +02:00
|
|
|
url(r'^demande$', petits_cours_views.demande,
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demande'),
|
2016-07-18 18:46:48 +02:00
|
|
|
url(r'^demande-raw$', petits_cours_views.demande_raw,
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demande-raw'),
|
2017-02-05 17:35:41 +01:00
|
|
|
url(r'^demandes$',
|
|
|
|
buro_required(DemandeListView.as_view()),
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demandes-list'),
|
2017-02-05 17:35:41 +01:00
|
|
|
url(r'^demandes/(?P<pk>\d+)$',
|
|
|
|
buro_required(DemandeDetailView.as_view()),
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demande-details'),
|
2016-06-22 22:49:00 +02:00
|
|
|
url(r'^demandes/(?P<demande_id>\d+)/traitement$',
|
2016-07-18 18:46:48 +02:00
|
|
|
petits_cours_views.traitement,
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demande-traitement'),
|
2016-06-22 22:49:00 +02:00
|
|
|
url(r'^demandes/(?P<demande_id>\d+)/retraitement$',
|
2016-07-18 18:46:48 +02:00
|
|
|
petits_cours_views.retraitement,
|
2016-06-08 22:28:38 +02:00
|
|
|
name='petits-cours-demande-retraitement'),
|
|
|
|
]
|
|
|
|
|
|
|
|
surveys_patterns = [
|
2017-11-19 18:41:39 +01:00
|
|
|
url(r'^(?P<survey_id>\d+)/status$', views.survey_status,
|
|
|
|
name='survey.details.status'),
|
|
|
|
url(r'^(?P<survey_id>\d+)$', views.survey,
|
|
|
|
name='survey.details'),
|
2016-06-08 22:28:38 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
events_patterns = [
|
2017-11-19 18:41:39 +01:00
|
|
|
url(r'^(?P<event_id>\d+)$', views.event,
|
|
|
|
name='event.details'),
|
|
|
|
url(r'^(?P<event_id>\d+)/status$', views.event_status,
|
|
|
|
name='event.details.status'),
|
2016-06-08 22:28:38 +02:00
|
|
|
]
|
2016-07-15 01:06:33 +02:00
|
|
|
|
|
|
|
calendar_patterns = [
|
2017-11-19 18:41:39 +01:00
|
|
|
url(r'^subscription$', views.calendar,
|
|
|
|
name='calendar'),
|
|
|
|
url(r'^(?P<token>[a-z0-9-]+)/calendar.ics$', views.calendar_ics)
|
2016-07-15 01:06:33 +02:00
|
|
|
]
|
2016-08-23 18:57:59 +02:00
|
|
|
|
|
|
|
clubs_patterns = [
|
2016-08-23 20:10:25 +02:00
|
|
|
url(r'^membres/(?P<name>\w+)', views.membres_club, name='membres-club'),
|
2016-08-23 21:09:47 +02:00
|
|
|
url(r'^liste', views.liste_clubs, name='liste-clubs'),
|
|
|
|
url(r'^change_respo/(?P<club_name>\w+)/(?P<user_id>\d+)',
|
|
|
|
views.change_respo, name='change-respo'),
|
2016-08-23 18:57:59 +02:00
|
|
|
]
|