diff --git a/src/c3nav/editor/templates/editor/mapitem.html b/src/c3nav/editor/templates/editor/mapitem.html index 1c32a223..2e58856f 100644 --- a/src/c3nav/editor/templates/editor/mapitem.html +++ b/src/c3nav/editor/templates/editor/mapitem.html @@ -1,6 +1,6 @@ {% load bootstrap3 %} -

{% if new %}New{% else %}Edit{% endif %} {{ mapitem_type.title }}

+

{% if new %}New{% else %}Edit{% endif %} {{ title }}

{% csrf_token %} {% bootstrap_form form %} diff --git a/src/c3nav/editor/views.py b/src/c3nav/editor/views.py index c50af845..57db6c7e 100644 --- a/src/c3nav/editor/views.py +++ b/src/c3nav/editor/views.py @@ -149,6 +149,7 @@ def edit_mapitem(request, mapitem_type, name=None): return render(request, 'editor/mapitem.html', { 'form': form, 'mapitem_type': mapitem_type, + 'title': mapitemtype._meta.verbose_name, 'has_geometry': hasattr(mapitemtype, 'geometry'), 'name': orig_name, 'geomtype': getattr(mapitemtype, 'geomtype', None),