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

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

{{eventform.errors}}

{% endif %}
{% csrf_token %}
{{eventform.event_type.label}}: {% render eventform.event_type user action %} Date: {% render eventform.date user action %}
Description: {% render eventform.description user action %}
ID: {% render eventform.gramps_id user action %}
Place: {% render eventform.place user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Back to Event" "/event/%s" event.handle %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/event/" %} {% else %} {% make_button "Back to Families" "/event" %} {% make_button "Add Event" "/event/add" %} {% make_button "Edit Event" "/event/%s/edit" event.handle %} {% make_button "Delete Event" "/event/%s/delete" event.handle %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}