{% extends "view_page_detail.html" %} {% load my_tags %} {% block content %}
{% include "detail_breadcrumb.html" %}
{% if placeform.errors %}

The following fields have errors. Please correct and try again.

{{placeform.errors}}

{% endif %}
{% csrf_token %}
{{placeform.title.label}}: {% render placeform.title user action %}
{{placeform.lat.label}}: {% render placeform.lat user action %} {{placeform.long.label}}: {% render placeform.long user action %}
{{placeform.gramps_id.label}}: {% render placeform.gramps_id user action %} {{placeform.private.label}}: {% render placeform.private user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/place/%s" place.handle %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/place/" %} {% else %} {% make_button "Add Place" "/place/add" %} {% make_button "Edit Place" "/place/%s/edit" place.handle %} {% make_button "Delete Place" "/place/%s/delete" place.handle %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}