diff --git a/input/urls.py b/input/urls.py index 682dfb1..d23ebdf 100755 --- a/input/urls.py +++ b/input/urls.py @@ -1,15 +1,41 @@ from django.urls import path 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 = [ 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('export', export, name='export'), path('authorize//', authorize, name='authorize'), path('deny//', deny, name='deny'), + + # Static info page for project funding above 1000 EUR path('extern/info/projektfoerderung-ab-1000/', TemplateView.as_view(template_name='input/info_project_funding_gt_1000.html'), 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'), ]