2020-09-22 10:21:05 +00:00
|
|
|
from django.urls import path
|
2025-08-27 09:58:40 +00:00
|
|
|
from django.views.generic import TemplateView
|
2025-08-31 21:43:29 +00:00
|
|
|
from django.views.i18n import JavaScriptCatalog
|
|
|
|
|
from .views import (
|
|
|
|
|
index, done, export, authorize, deny,
|
|
|
|
|
TravelApplicationView, IFGApplicationView, EmailApplicationView,
|
|
|
|
|
LiteratureApplicationView, ListApplicationView, BusinessCardApplicationView,
|
|
|
|
|
LibraryApplicationView, ELiteratureApplicationView, SoftwareApplicationView,
|
|
|
|
|
)
|
2023-02-27 17:09:29 +00:00
|
|
|
|
2020-09-22 10:21:05 +00:00
|
|
|
urlpatterns = [
|
2024-01-07 14:13:21 +00:00
|
|
|
path('', index, name='index'),
|
2025-08-31 21:43:29 +00:00
|
|
|
path(
|
|
|
|
|
"extern/",
|
|
|
|
|
TemplateView.as_view(template_name="input/forms/extern.html"),
|
|
|
|
|
name="extern",
|
|
|
|
|
),
|
2020-10-20 06:06:36 +00:00
|
|
|
path('saved', done, name='done'),
|
2020-11-19 14:55:10 +00:00
|
|
|
path('export', export, name='export'),
|
2020-10-20 06:29:51 +00:00
|
|
|
path('authorize/<str:choice>/<int:pk>', authorize, name='authorize'),
|
2023-02-27 17:09:29 +00:00
|
|
|
path('deny/<str:choice>/<int:pk>', deny, name='deny'),
|
2025-08-31 21:43:29 +00:00
|
|
|
|
|
|
|
|
# Static info page for project funding above 1000 EUR
|
2025-08-27 09:58:40 +00:00
|
|
|
path('extern/info/projektfoerderung-ab-1000/',
|
|
|
|
|
TemplateView.as_view(template_name='input/info_project_funding_gt_1000.html'),
|
|
|
|
|
name="info-foerderprojekt-ab-1000"),
|
2025-08-31 21:43:29 +00:00
|
|
|
|
|
|
|
|
# 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'),
|
2020-09-22 10:21:05 +00:00
|
|
|
]
|