2016-08-31 17:14:31 +02:00
|
|
|
from django.conf.urls import url
|
2016-09-11 22:11:28 +02:00
|
|
|
from django.views.generic import TemplateView
|
2016-08-31 17:14:31 +02:00
|
|
|
|
2017-05-01 18:10:46 +02:00
|
|
|
from c3nav.editor.views import edit_mapitem, list_mapitems, list_mapitemtypes
|
2016-09-23 15:23:02 +02:00
|
|
|
|
2016-08-31 17:14:31 +02:00
|
|
|
urlpatterns = [
|
2016-09-23 15:23:02 +02:00
|
|
|
url(r'^$', TemplateView.as_view(template_name='editor/map.html'), name='editor.index'),
|
2016-11-27 23:51:44 +01:00
|
|
|
url(r'^mapitemtypes/(?P<level>[^/]+)/$', list_mapitemtypes, name='editor.mapitemtypes'),
|
|
|
|
url(r'^mapitems/(?P<mapitem_type>[^/]+)/list/$', list_mapitems, name='editor.mapitems'),
|
2017-05-07 12:06:13 +02:00
|
|
|
url(r'^mapitems/(?P<mapitem_type>[^/]+)/list/(?P<sectionl>[0-9]+)/$', list_mapitems, name='editor.mapitems.level'),
|
2016-11-27 23:51:44 +01:00
|
|
|
url(r'^mapitems/(?P<mapitem_type>[^/]+)/add/$', edit_mapitem, name='editor.mapitems.add'),
|
2017-05-05 16:21:48 +02:00
|
|
|
url(r'^mapitems/(?P<mapitem_type>[^/]+)/edit/(?P<id>[^/]+)/$', edit_mapitem, name='editor.mapitems.edit'),
|
2016-08-31 17:14:31 +02:00
|
|
|
]
|