forked from DGNum/gestioCOF
Misc urlconf files
This commit is contained in:
parent
271732f40d
commit
8fc6f96324
3 changed files with 32 additions and 44 deletions
|
@ -1,35 +1,35 @@
|
|||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from gestioncof.decorators import buro_required
|
||||
from petitscours import views
|
||||
from petitscours.views import DemandeDetailView, DemandeListView
|
||||
|
||||
urlpatterns = [
|
||||
url(r"^inscription$", views.inscription, name="petits-cours-inscription"),
|
||||
url(r"^demande$", views.demande, name="petits-cours-demande"),
|
||||
url(
|
||||
r"^demande-raw$",
|
||||
path("inscription", views.inscription, name="petits-cours-inscription"),
|
||||
path("demande", views.demande, name="petits-cours-demande"),
|
||||
path(
|
||||
"demande-raw",
|
||||
views.demande,
|
||||
kwargs={"raw": True},
|
||||
name="petits-cours-demande-raw",
|
||||
),
|
||||
url(
|
||||
r"^demandes$",
|
||||
path(
|
||||
"demandes",
|
||||
buro_required(DemandeListView.as_view()),
|
||||
name="petits-cours-demandes-list",
|
||||
),
|
||||
url(
|
||||
r"^demandes/(?P<pk>\d+)$",
|
||||
path(
|
||||
"demandes/<int:pk>",
|
||||
buro_required(DemandeDetailView.as_view()),
|
||||
name="petits-cours-demande-details",
|
||||
),
|
||||
url(
|
||||
r"^demandes/(?P<demande_id>\d+)/traitement$",
|
||||
path(
|
||||
"demandes/<int:demande_id>/traitement",
|
||||
views.traitement,
|
||||
name="petits-cours-demande-traitement",
|
||||
),
|
||||
url(
|
||||
r"^demandes/(?P<demande_id>\d+)/retraitement$",
|
||||
path(
|
||||
"demandes/<int:demande_id>/retraitement",
|
||||
views.traitement,
|
||||
kwargs={"redo": True},
|
||||
name="petits-cours-demande-retraitement",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue