forked from beba/foerderbarometer
update URL routing to use new class-based application views and static extern page
This commit is contained in:
parent
7cfd477d40
commit
35ae9ab0e5
|
|
@ -1,15 +1,41 @@
|
||||||
from django.urls import path
|
from django.urls import path
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
from .views import ExternView, index, done, authorize, deny, export
|
from django.views.i18n import JavaScriptCatalog
|
||||||
|
from .views import (
|
||||||
|
index, done, export, authorize, deny,
|
||||||
|
TravelApplicationView, IFGApplicationView, EmailApplicationView,
|
||||||
|
LiteratureApplicationView, ListApplicationView, BusinessCardApplicationView,
|
||||||
|
LibraryApplicationView, ELiteratureApplicationView, SoftwareApplicationView,
|
||||||
|
)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', index, name='index'),
|
path('', index, name='index'),
|
||||||
path('extern', ExternView.as_view(), name='extern'),
|
path(
|
||||||
|
"extern/",
|
||||||
|
TemplateView.as_view(template_name="input/forms/extern.html"),
|
||||||
|
name="extern",
|
||||||
|
),
|
||||||
path('saved', done, name='done'),
|
path('saved', done, name='done'),
|
||||||
path('export', export, name='export'),
|
path('export', export, name='export'),
|
||||||
path('authorize/<str:choice>/<int:pk>', authorize, name='authorize'),
|
path('authorize/<str:choice>/<int:pk>', authorize, name='authorize'),
|
||||||
path('deny/<str:choice>/<int:pk>', deny, name='deny'),
|
path('deny/<str:choice>/<int:pk>', deny, name='deny'),
|
||||||
|
|
||||||
|
# Static info page for project funding above 1000 EUR
|
||||||
path('extern/info/projektfoerderung-ab-1000/',
|
path('extern/info/projektfoerderung-ab-1000/',
|
||||||
TemplateView.as_view(template_name='input/info_project_funding_gt_1000.html'),
|
TemplateView.as_view(template_name='input/info_project_funding_gt_1000.html'),
|
||||||
name="info-foerderprojekt-ab-1000"),
|
name="info-foerderprojekt-ab-1000"),
|
||||||
|
|
||||||
|
# New single-page application views
|
||||||
|
path("extern/reisekosten/", TravelApplicationView.as_view(), name="reisekosten"),
|
||||||
|
path("extern/ifg/", IFGApplicationView.as_view(), name="ifg"),
|
||||||
|
path("extern/email/", EmailApplicationView.as_view(), name="email"),
|
||||||
|
path("extern/literaturstipendium/", LiteratureApplicationView.as_view(), name="literatur"),
|
||||||
|
path("extern/mailingliste/", ListApplicationView.as_view(), name="mailingliste"),
|
||||||
|
path("extern/visitenkarten/", BusinessCardApplicationView.as_view(), name="visitenkarten"),
|
||||||
|
path("extern/bibliotheksstipendium/", LibraryApplicationView.as_view(), name="bibliotheksstipendium"),
|
||||||
|
path("extern/eliteraturstipendium/", ELiteratureApplicationView.as_view(), name="eliteraturstipendium"),
|
||||||
|
path("extern/softwarestipendium/", SoftwareApplicationView.as_view(), name="softwarestipendium"),
|
||||||
|
|
||||||
|
# JavaScript translations for date widgets, etc.
|
||||||
|
path('jsi18n/', JavaScriptCatalog.as_view(), name='jsi18n'),
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue