Coverage for xplanung_light/urls.py: 100%
33 statements
« prev ^ index » next coverage.py v7.17.5, created at 2026-11-27 10:10 +0000
« prev ^ index » next coverage.py v7.17.5, created at 2026-11-27 10:10 +0000
1from django.urls import path, re_path, include
2from xplanung_light.views import views
3from django.contrib.auth import views as auth_views
4from xplanung_light.views.bplan import BPlanCreateView, BPlanUpdateView, BPlanDeleteView, BPlanListView, BPlanDetailView, BPlanListViewHtml
5from xplanung_light.views.bplan import BPlanPublicListView
6from xplanung_light.views.fplan import FPlanPublicListView
7from xplanung_light.views.fplan import FPlanCreateView, FPlanUpdateView, FPlanDeleteView, FPlanListView, FPlanDetailView, FPlanListViewHtml
8from xplanung_light.views.beteiligung import BeteiligungenListView, BeteiligungenOrgaListView, BeteiligungPdfView, ToebUnitBeteiligungenListView
9from xplanung_light.views.requestforrole import RequestForRoleCreateView, RequestForRoleListView, RequestForRoleDeleteView, RequestForRoleAdminListView
10from xplanung_light.views.beteiligungbeitrag import BeteiligungBeitragCreateView, BeteiligungBeitragListView, BeteiligungBeitragDeleteView, BeteiligungBeitragDetailView
11from xplanung_light.views.beteiligungbeitrag import BeteiligungBeitragGenericCreateView, BeteiligungBeitragGenericUpdateView, BeteiligungBeitragToebCreateView, BeteiligungBeitragToebUpdateView, BeteiligungBeitragToebDeleteView
12from xplanung_light.views.beteiligungbeitraganhang import BeteiligungBeitragAnhangListView
13from xplanung_light.views.beteiligungbeitraganhangredacted import BeteiligungBeitragAnhangRedactedCreateView, BeteiligungBeitragAnhangRedactedDetailView, BeteiligungBeitragAnhangRedactedDeleteView
14from xplanung_light.views.beitragstellungnahme import XPlanBeitragStellungnahmeCreateView, XPlanBeitragStellungnahmeUpdateView, BeitragStellungnahmeListView, XPlanBeitragStellungnahmeDeleteView
15from xplanung_light.views.fplan import FPlanDetailXPlanLightView, FPlanDetailXPlanLightZipView
16from xplanung_light.views.bplan import BPlanDetailXPlanLightView, BPlanDetailXPlanLightZipView
17from xplanung_light.views.bplanspezexternereferenz import BPlanSpezExterneReferenzCreateView, BPlanSpezExterneReferenzUpdateView, BPlanSpezExterneReferenzDeleteView, BPlanSpezExterneReferenzListView
18from xplanung_light.views.fplanspezexternereferenz import FPlanSpezExterneReferenzCreateView, FPlanSpezExterneReferenzUpdateView, FPlanSpezExterneReferenzDeleteView, FPlanSpezExterneReferenzListView
19from xplanung_light.views.bplanbeteiligung import BPlanBeteiligungCreateView, BPlanBeteiligungUpdateView, BPlanBeteiligungDeleteView, BPlanBeteiligungListView, BPlanBeteiligungDeleteRecursiveHistoryView
20from xplanung_light.views.fplanbeteiligung import FPlanBeteiligungCreateView, FPlanBeteiligungUpdateView, FPlanBeteiligungDeleteView, FPlanBeteiligungListView
21from xplanung_light.views.uvp import UvpCreateView, UvpUpdateView, UvpDeleteView, UvpListView
22from xplanung_light.views.fplanuvp import FPlanUvpCreateView, FPlanUvpUpdateView, FPlanUvpDeleteView, FPlanUvpListView
23from xplanung_light.views.administrativeorganization import AdministrativeOrganizationPublishingListView, AdministrativeOrganizationAutocomplete, AdministrativeOrganizationListView, AdministrativeOrganizationUpdateView, AdministrativeOrganizationPublishingListPublicView
24from xplanung_light.views.contactorganization import ContactOrganizationCreateView, ContactOrganizationListView, ContactOrganizationUpdateView, ContactOrganizationDeleteView
25from xplanung_light.views.toebunit import ToebUnitCreateView, ToebUnitListView, ToebUnitUpdateView, ToebUnitDeleteView, ToebUnitPublicListView
26from xplanung_light.views.orgauser import OrganizationUserFormViewAdmin, OrganizationUserFormViewToebReporter, UserOrganizationFormViewRoles
27from xplanung_light.views.beteiligungtoebnotification import BeteiligungToebNotificationCreateView, BeteiligungToebNotificationListView
28from xplanung_light.views.customuser import CustomPasswordResetView, CustomProfileUpdateView
29from django.views.i18n import JavaScriptCatalog
30from xplanung_light.views.consentoption import ConsentOptionCreateView, ConsentOptionUpdateView, ConsentOptionListView, ConsentOptionDeleteView
31from django.urls import re_path as url
32# https://learndjango.com/tutorials/django-login-and-logout-tutorial
33urlpatterns = [
34 path("", views.home, name="home"),
35 path("accounts/login/", auth_views.LoginView.as_view(next_page="home"), name="login"),
36 path("accounts/logout/",
37 auth_views.LogoutView.as_view(next_page="home"), name='logout'),
38 path("accounts/password_change/", auth_views.PasswordChangeView.as_view(
39 template_name="registration/password_change_form.html"), name='password_change'),
40 path("accounts/password_change_done/",
41 auth_views.PasswordChangeDoneView.as_view(), name='password_change_done'),
42 # path("accounts/password_reset/", auth_views.PasswordResetView.as_view(), name='password_reset'),
43 path("accounts/password_reset/",
44 CustomPasswordResetView.as_view(), name='password_reset'),
45 path("accounts/password_reset_done/",
46 auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
47 path("accounts/reset/<uidb64>/<token>/", auth_views.PasswordResetConfirmView.as_view(
48 post_reset_login=True), name='password_reset_confirm'),
49 path("accounts/reset/done/", auth_views.PasswordResetCompleteView.as_view(),
50 name='password_reset_complete'),
51 path("accounts/user_profile_update/<int:pk>/",
52 CustomProfileUpdateView.as_view(), name='user_profile_update'),
53 # https://dev.to/donesrom/how-to-set-up-django-built-in-registration-in-2023-41hg
54 path("register/", views.register, name="register"),
55 path("about/", views.about, name="about"),
56 path("version/", views.version, name="version"),
57 path("datenschutz/", views.datenschutz, name="datenschutz"),
58 path("impressum/", views.impressum, name="impressum"),
59 path("aggregates/", views.aggregates, name="aggregates"),
60 # BPlan CRUD
61 path("bplan/", BPlanListView.as_view(), name="bplan-list"),
62 path("bplan-public/", BPlanPublicListView.as_view(), name="bplan-public-list"),
63 path("bplan/create/", BPlanCreateView.as_view(), name="bplan-create"),
64 path("bplan/<int:pk>/update/", BPlanUpdateView.as_view(), name="bplan-update"),
65 path("bplan/<int:pk>/delete/", BPlanDeleteView.as_view(), name="bplan-delete"),
66 path("bplan/<int:pk>/", BPlanDetailView.as_view(), name="bplan-detail"),
67 path("bplan/<int:pk>/overview-map/",
68 views.ows_bplan_overview, name="bplan-overview-map"),
69 # BPlan HTML List - für GetFeatureInfo
70 path("bplan/html-list/", BPlanListViewHtml.as_view(), name="bplan-list-html"),
71 # BPlan XPlan Export
72 path("bplan/<int:pk>/xplan/", BPlanDetailXPlanLightView.as_view(
73 template_name="xplanung_light/bplan_template_xplanung_light_6.xml"), name="bplan-export-xplan-raster-6"),
74 path("bplan/<int:pk>/xplan-zip/", BPlanDetailXPlanLightZipView.as_view(
75 template_name="xplanung_light/bplan_template_xplanung_light_6.xml"), name="bplan-export-xplan-raster-6-zip"),
76 path("bplan/<int:pk>/iso19139/", BPlanDetailXPlanLightView.as_view(
77 template_name="xplanung_light/bplan_template_iso19139.xml"), name="bplan-export-iso19139"),
78 path("bplan/import/", views.bplan_import, name="bplan-import"),
79 path("bplan/import-archiv/", views.bplan_import_archiv,
80 name="bplan-import-archiv"),
81 # BPlan Anlagen
82 path("bplan/<int:planid>/attachment/create/",
83 BPlanSpezExterneReferenzCreateView.as_view(), name="bplanattachment-create"),
84 path("bplan/<int:planid>/attachment/",
85 BPlanSpezExterneReferenzListView.as_view(), name="bplanattachment-list"),
86 path("bplan/<int:planid>/attachment/<int:pk>/update/",
87 BPlanSpezExterneReferenzUpdateView.as_view(), name="bplanattachment-update"),
88 path("bplan/<int:planid>/attachment/<int:pk>/delete/",
89 BPlanSpezExterneReferenzDeleteView.as_view(), name="bplanattachment-delete"),
90 path("bplanattachment/<int:pk>/", views.get_bplan_attachment,
91 name="bplanattachment-download"),
92 # BPlan Beteiligungen
93 path("bplan/<int:planid>/beteiligung/",
94 BPlanBeteiligungListView.as_view(), name="bplanbeteiligung-list"),
95 path("bplan/<int:planid>/beteiligung/<int:pk>/delete/",
96 BPlanBeteiligungDeleteView.as_view(), name="bplanbeteiligung-delete"),
97 # Hinzufügen der Option nicht nur die Objekte, sondern auch deren Historie zu löschen
98 path("bplan/<int:planid>/beteiligung/<int:pk>/delete_recursive_history/",
99 BPlanBeteiligungDeleteRecursiveHistoryView.as_view(), name="bplanbeteiligung-delete-recursive-history"),
100 # Beteiligungsviews mit django-formset - sollte mit einem view möglich sein, klappt aber nicht
101 path("bplan/<int:planid>/beteiligung/create/", BPlanBeteiligungCreateView.as_view(
102 extra_context={'create': True}), name="bplanbeteiligung-create"),
103 path("bplan/<int:planid>/beteiligung/<int:pk>/update/",
104 BPlanBeteiligungUpdateView.as_view(extra_context={'update': True}), name="bplanbeteiligung-update"),
105 # path("bplan/<int:planid>/beteiligung/<int:pk>/notify/create", BPlanBeteiligungNotifyCreateView.as_view(), name="bplanbeteiligungnotify-create"),
106 # Neue Struktur für Routen, die für alle Plantypen gelten!
107 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<pk>\d+)/beitrag/create/$',
108 BeteiligungBeitragCreateView.as_view(), name="beteiligungbeitrag-create"),
109 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<pk>\d+)/beitrag/create/organization/(?P<orga_id>\d+)/$',
110 BeteiligungBeitragCreateView.as_view(), name="beteiligungbeitrag-create-orga"),
111 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/$',
112 BeteiligungBeitragListView.as_view(), name="beteiligungbeitrag-list"),
113 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<pk>\d+)/delete/$',
114 BeteiligungBeitragDeleteView.as_view(), name="beteiligungbeitrag-delete"),
115 # Formular für die Sachbearbeiter
116 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag-generic/create/$',
117 BeteiligungBeitragGenericCreateView.as_view(extra_context={'create': True}), name="beteiligungbeitrag-generic-create"),
118 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag-generic/(?P<pk>\d+)/update/$',
119 BeteiligungBeitragGenericUpdateView.as_view(extra_context={'update': True}), name="beteiligungbeitrag-generic-update"),
120 # Formular für TOEB Reporter
121 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag-toeb/create/toeb/(?P<toeb_id>\d+)/$',
122 BeteiligungBeitragToebCreateView.as_view(extra_context={'create': True}), name="beteiligungbeitrag-toeb-create"),
123 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag-toeb/(?P<pk>\d+)/update/$',
124 BeteiligungBeitragToebUpdateView.as_view(extra_context={'update': True}), name="beteiligungbeitrag-toeb-update"),
125 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag-toeb/(?P<pk>\d+)/delete/$',
126 BeteiligungBeitragToebDeleteView.as_view(), name="beteiligungbeitrag-toeb-delete"),
127 # Aktivierungslink
128 re_path(
129 r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<generic_id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/activate$', views.beitrag_activate, name="beteiligungbeitrag-activate"),
130 re_path(
131 r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<generic_id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/withdraw$', views.beitrag_withdraw, name="beteiligungbeitrag-withdraw"),
132 re_path(
133 r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<generic_id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/reactivate$', views.beitrag_reactivate, name="beteiligungbeitrag-reactivate"),
134 # Authentifizierung für guest
135 re_path(
136 r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<generic_id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/authenticate$', views.beitrag_authenticate, name="beteiligungbeitrag-authenticate"),
137 re_path(
138 r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<generic_id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/detail$', views.beitrag_detail, name="gastbeteiligungbeitrag-detail"),
139 # Anlagen zu den Beiträgen / geschwärzte Version priorisiert
140 re_path(r'^(?P<plantyp>bplan|fplan)/beteiligungbeitragattachment/(?P<pk>\d+)/$',
141 views.get_beteiligung_beitrag_attachment, name="beteiligung-beitrag-attachment-download"),
142 # Anlagen zu den Beiträgen / original Version priorisiert
143 re_path(r'^(?P<plantyp>bplan|fplan)/beteiligungbeitragattachment_orig/(?P<pk>\d+)/$',
144 views.get_beteiligung_beitrag_attachment_orig, name="beteiligung-beitrag-attachment-download-orig"),
145 # Detailseite zum Beteiligungsbeitrag
146 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<pk>\d+)/$',
147 BeteiligungBeitragDetailView.as_view(), name="beteiligungbeitrag-detail"),
149 # Anlagenliste für den Sachbearbeiter um geschwärzte Dokumente beizufügen
150 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<pk>\d+)/anhang/$',
151 BeteiligungBeitragAnhangListView.as_view(), name="beteiligungbeitraganhang-list"),
153 # re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/anhang/(?P<anhangid>\d+)/redacted/create/$', BeteiligungBeitragAnhangRedactedCreateView.as_view(), name="beteiligungbeitraganhangredacted-create"),
154 re_path(r'^(?P<plantyp>bplan|fplan)/beteiligungbeitraganhang/(?P<anhang_generic_id>[0-9a-f-]{36})/redacted/create/$',
155 BeteiligungBeitragAnhangRedactedCreateView.as_view(), name="beteiligungbeitraganhangredacted-create"),
157 # re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/anhang/(?P<anhangid>\d+)/redacted/(?P<pk>\d+)/detail/$', BeteiligungBeitragAnhangRedactedDetailView.as_view(), name="beteiligungbeitraganhangredacted-detail"),
158 re_path(r'^(?P<plantyp>bplan|fplan)/beteiligungbeitraganhang/redacted/(?P<generic_id>[0-9a-f-]{36})/detail/$',
159 BeteiligungBeitragAnhangRedactedDetailView.as_view(), name="beteiligungbeitraganhangredacted-detail"),
161 # re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/anhang/(?P<anhangid>\d+)/redacted/(?P<pk>\d+)/delete/$', BeteiligungBeitragAnhangRedactedDeleteView.as_view(), name="beteiligungbeitraganhangredacted-delete"),
162 re_path(r'^(?P<plantyp>bplan|fplan)/beteiligungbeitraganhang/redacted/(?P<generic_id>[0-9a-f-]{36})/delete/$',
163 BeteiligungBeitragAnhangRedactedDeleteView.as_view(), name="beteiligungbeitraganhangredacted-delete"),
166 # PDF Dokument mit einer Liste der Beiträge
167 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/pdf/$',
168 BeteiligungPdfView.as_view(), name="beteiligungbeitrag-list-pdf"),
169 # URLs für die Stellungnahmen der Gebietskörperschaften zu den Beiträgen
170 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/stellungnahme/create/$',
171 XPlanBeitragStellungnahmeCreateView.as_view(extra_context={'create': True}), name="beitragstellungnahme-create"),
172 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/stellungnahme/(?P<pk>\d+)/update/$',
173 XPlanBeitragStellungnahmeUpdateView.as_view(extra_context={'update': True}), name="beitragstellungnahme-update"),
174 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/stellungnahme/$',
175 BeitragStellungnahmeListView.as_view(), name="beitragstellungnahme-list"),
176 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/beitrag/(?P<beitragid>\d+)/stellungnahme/(?P<pk>\d+)/delete/$',
177 XPlanBeitragStellungnahmeDeleteView.as_view(), name="beitragstellungnahme-delete"),
178 # TOEB Notification
179 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/notification/create/$',
180 BeteiligungToebNotificationCreateView.as_view(), name="beteiligungnotification-create"),
181 re_path(r'^(?P<plantyp>bplan|fplan)/(?P<planid>\d+)/beteiligung/(?P<beteiligungid>\d+)/notification/$',
182 BeteiligungToebNotificationListView.as_view(), name="beteiligungnotification-list"),
183 # BPlan UVP Info
184 path("bplan/<int:planid>/uvp/create/",
185 UvpCreateView.as_view(), name="uvp-create"),
186 path("bplan/<int:planid>/uvp/", UvpListView.as_view(), name="uvp-list"),
187 path("bplan/<int:planid>/uvp/<int:pk>/update/",
188 UvpUpdateView.as_view(), name="uvp-update"),
189 path("bplan/<int:planid>/uvp/<int:pk>/delete/",
190 UvpDeleteView.as_view(), name="uvp-delete"),
191 # FPlan
192 # BPlan CRUD
193 path("fplan/", FPlanListView.as_view(), name="fplan-list"),
194 path("fplan-public/", FPlanPublicListView.as_view(), name="fplan-public-list"),
195 path("fplan/create/", FPlanCreateView.as_view(), name="fplan-create"),
196 path("fplan/<int:pk>/update/", FPlanUpdateView.as_view(), name="fplan-update"),
197 path("fplan/<int:pk>/delete/", FPlanDeleteView.as_view(), name="fplan-delete"),
198 path("fplan/<int:pk>/", FPlanDetailView.as_view(), name="fplan-detail"),
199 path("fplan/<int:pk>/overview-map/",
200 views.ows_fplan_overview, name="fplan-overview-map"),
201 # FPlan HTML List - für GetFeatureInfo
202 # path("fplan/html-list/", FPlanListViewHtml.as_view(), name="fplan-list-html"),
203 # FPlan XPlan Export
204 path("fplan/<int:pk>/xplan/", FPlanDetailXPlanLightView.as_view(
205 template_name="xplanung_light/fplan_template_xplanung_light_6.xml"), name="fplan-export-xplan-raster-6"),
206 path("fplan/<int:pk>/xplan-zip/", FPlanDetailXPlanLightZipView.as_view(
207 template_name="xplanung_light/fplan_template_xplanung_light_6.xml"), name="fplan-export-xplan-raster-6-zip"),
208 path("fplan/<int:pk>/iso19139/", FPlanDetailXPlanLightView.as_view(
209 template_name="xplanung_light/fplan_template_iso19139.xml"), name="fplan-export-iso19139"),
210 path("fplan/import/", views.fplan_import, name="fplan-import"),
211 path("fplan/import-archiv/", views.fplan_import_archiv,
212 name="fplan-import-archiv"),
213 # FPlan Beteiligungen
214 # path("fplan/<int:planid>/beteiligung/create/", FPlanBeteiligungCreateView.as_view(), name="fplanbeteiligung-create"),
215 path("fplan/<int:planid>/beteiligung/",
216 FPlanBeteiligungListView.as_view(), name="fplanbeteiligung-list"),
217 # path("fplan/<int:planid>/beteiligung/<int:pk>/update/", FPlanBeteiligungUpdateView.as_view(), name="fplanbeteiligung-update"),
218 path("fplan/<int:planid>/beteiligung/create/", FPlanBeteiligungCreateView.as_view(
219 extra_context={'create': True}), name="fplanbeteiligung-create"),
220 path("fplan/<int:planid>/beteiligung/<int:pk>/update/",
221 FPlanBeteiligungUpdateView.as_view(extra_context={'update': True}), name="fplanbeteiligung-update"),
222 path("fplan/<int:planid>/beteiligung/<int:pk>/delete/",
223 FPlanBeteiligungDeleteView.as_view(), name="fplanbeteiligung-delete"),
224 # Notify
225 # path("fplan/<int:planid>/beteiligung/<int:pk>/notify/create", FPlanBeteiligungNotifyCreateView.as_view(), name="fplanbeteiligungnotify-create"),
226 # FPlan Anlagen
227 path("fplan/<int:planid>/attachment/create/",
228 FPlanSpezExterneReferenzCreateView.as_view(), name="fplanattachment-create"),
229 path("fplan/<int:planid>/attachment/",
230 FPlanSpezExterneReferenzListView.as_view(), name="fplanattachment-list"),
231 path("fplan/<int:planid>/attachment/<int:pk>/update/",
232 FPlanSpezExterneReferenzUpdateView.as_view(), name="fplanattachment-update"),
233 path("fplan/<int:planid>/attachment/<int:pk>/delete/",
234 FPlanSpezExterneReferenzDeleteView.as_view(), name="fplanattachment-delete"),
235 path("fplanattachment/<int:pk>/", views.get_fplan_attachment,
236 name="fplanattachment-download"),
237 # FPlan UP Info
238 path("fplan/<int:planid>/uvp/create/",
239 FPlanUvpCreateView.as_view(), name="fplan-uvp-create"),
240 path("fplan/<int:planid>/uvp/",
241 FPlanUvpListView.as_view(), name="fplan-uvp-list"),
242 path("fplan/<int:planid>/uvp/<int:pk>/update/",
243 FPlanUvpUpdateView.as_view(), name="fplan-uvp-update"),
244 path("fplan/<int:planid>/uvp/<int:pk>/delete/",
245 FPlanUvpDeleteView.as_view(), name="fplan-uvp-delete"),
246 # Organisationen
247 # WMS / WFS pro Organisation
248 path("organization/<int:pk>/ows/", views.ows, name="ows"),
249 # Pfad für Verbandsgemeinden - zur Generierung der Liste/Karte der Gebietsköperschaften
250 path("organization/<int:pk>/childs_map/",
251 views.childs_map, name="childs-map"),
252 # Pfad für Liste der Verbandsgemeinden
253 path("organization/verbandsgemeinden/", views.vg_list, name="vg-list"),
254 # Organisations XPlan-Liste für GetFeatureInfo - hier müssen alle Plantypen zurückgeliefert werden können
255 path("organization/<int:pk>/xplan/html/",
256 views.xplan_html, name="xplan-list-html"),
257 # Liste der aktuell laufeden Beteiligungsverfahren in einer Gebietskörperschaft
258 path("organization/<int:pk>/beteiligungen/",
259 BeteiligungenOrgaListView.as_view(), name="organization-beteiligungen-list"),
260 # Einfache Liste aller Informationen zu Bauleitplänen einer Kommune
261 path("organization/<int:pk>/bauleitplanung/",
262 views.bauleitplanung_orga_html, name="organization-bauleitplanung-list"),
263 #
264 path("organization/publishing/", AdministrativeOrganizationPublishingListView.as_view(),
265 name="organization-publishing-list"),
266 path("organization/publishing-public/", AdministrativeOrganizationPublishingListPublicView.as_view(),
267 name="organization-publishing-list-public"),
268 url(
269 r'^administrativeorganization-autocomplete/$',
270 AdministrativeOrganizationAutocomplete.as_view(),
271 name='administrativeorganization-autocomplete',
272 ),
273 # Organisationen für die der Nutzer is_amin=True hat
274 path("organization/", AdministrativeOrganizationListView.as_view(),
275 name="organization-list"),
276 path("organization/<int:pk>/update/",
277 AdministrativeOrganizationUpdateView.as_view(), name="organization-update"),
278 # Kontaktorganisationen
279 path("contact/create/", ContactOrganizationCreateView.as_view(),
280 name="contact-create"),
281 path("contact/", ContactOrganizationListView.as_view(), name="contact-list"),
282 path("contact/<int:pk>/update/",
283 ContactOrganizationUpdateView.as_view(), name="contact-update"),
284 path("contact/<int:pk>/delete/",
285 ContactOrganizationDeleteView.as_view(), name="contact-delete"),
286 # TOEB Units - für Organization admins!
287 path("toebunit/create/", ToebUnitCreateView.as_view(), name="toebunit-create"),
288 path("toebunit/", ToebUnitListView.as_view(), name="toebunit-list"),
289 path("toebunit/<int:pk>/update/",
290 ToebUnitUpdateView.as_view(), name="toebunit-update"),
291 path("toebunit/<int:pk>/delete/",
292 ToebUnitDeleteView.as_view(), name="toebunit-delete"),
293 # TOEB Units - für Öffentlichkeit
294 path("toebunitpublic/", ToebUnitPublicListView.as_view(),
295 name="toebunitpublic-list"),
296 # TOEB Unit Beteiligungen
297 path("toeb/beteiligungen/", ToebUnitBeteiligungenListView.as_view(),
298 name="toebbeteiligungen-list"),
299 # Berechtigungsanfragen
300 path("requestforrole/create/", RequestForRoleCreateView.as_view(),
301 name="requestforrole-create"),
302 path("requestforrole/", RequestForRoleListView.as_view(),
303 name="requestforrole-list"),
304 # url für den Zentraladministrator - der darf Anträge bestätigen und zurückweisen
305 path("requestforrole_admin/", RequestForRoleAdminListView.as_view(),
306 name="requestforrole-admin-list"),
307 path("requestforrole/<int:pk>/delete/",
308 RequestForRoleDeleteView.as_view(), name="requestforrole-delete"),
309 # RequestForRoleConfirm
310 path("requestforrole/<int:pk>/confirm/",
311 views.RequestForRoleConfirm.as_view(), name="requestforrole-confirm"),
312 # RequestForRoleRefuse
313 path("requestforrole/<int:pk>/refuse/",
314 views.RequestForRoleRefuse.as_view(), name="requestforrole-refuse"),
315 # Verwaltung von Zustimmungsoptionen - nur für superuser
316 path("consentoption/create/", ConsentOptionCreateView.as_view(
317 extra_context={'create': True}), name="consentoption-create"),
318 path("consentoption/", ConsentOptionListView.as_view(),
319 name="consentoption-list"),
320 path("consentoption/<int:pk>/update/", ConsentOptionUpdateView.as_view(
321 extra_context={'update': True}), name="consentoption-update"),
322 path("consentoption/<int:pk>/delete/",
323 ConsentOptionDeleteView.as_view(), name="consentoption-delete"),
324 # Offenlagen / Beteiligungen
325 # WMS
326 path("beteiligungen/map/", views.ows_beteiligungen, name="beteiligungen-map"),
327 # Alle Pläne
328 re_path(r'^(?P<plantyp>fplan|bplan)/map/$',
329 views.ows_all_orgas_xplan, name="plan-map"),
330 # path("beteiligungen/", views.beteiligungen, name="beteiligungen"),
331 # Liste aller aktuellen Beteiligungsverfahren
332 path("beteiligungen/", BeteiligungenListView.as_view(), name="beteiligungen"),
333 # Administrationsviews für die Beziehung zwischen Organisationen und Nutzern
334 path("organization/manage-users/admin/", OrganizationUserFormViewAdmin.as_view(),
335 name='manage-organization-users-admin'),
336 path("organization/manage-users/toeb-reporter/", OrganizationUserFormViewToebReporter.as_view(),
337 name='manage-organization-users-toeb-reporter'),
338 path("organization/manage-users/roles/",
339 UserOrganizationFormViewRoles.as_view(), name='users-organization-roles'),
340 # Dokumentation
341 path('docs/', include('docs.urls')),
342 path('jsi18n/', JavaScriptCatalog.as_view(), name='javascript-catalog'),
343 path('api/geocode/', views.geocodeBkg, name="geocode"),
344]
345urlpatterns += [
346 path('captcha/', include('captcha.urls')),
347]