forked from beba/foerderbarometer
42 lines
2.0 KiB
Python
Executable File
42 lines
2.0 KiB
Python
Executable File
from django.urls import path
|
|
from django.views.generic import TemplateView
|
|
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/',
|
|
TemplateView.as_view(template_name='input/forms/extern.html'),
|
|
name='extern',
|
|
),
|
|
path('saved', done, name='done'),
|
|
path('export', export, name='export'),
|
|
path('authorize/<str:choice>/<int:pk>', authorize, name='authorize'),
|
|
path('deny/<str:choice>/<int:pk>', 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'),
|
|
]
|