{% 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 %} {{eventform.text.label}}: {% render eventform.text user action %}
Description: {% render eventform.description user action %}
ID: {% render eventform.gramps_id user action %}
Place: {% if action != "view" %}
{% else %} {{event.place}} {% endif %}
{% render eventform.private user action %}
{% citation_table event user action "/citation/$act/event/%s" event.handle %}
{% note_table event user action "/note/$act/event/%s" event.handle %}
{% media_table event user action "/media/$act/event/%s" event.handle %}
{% attribute_table event user action "/attribute/$act/event/%s" event.handle %}
{% event_reference_table event user action %}
{% history_table event user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/event/%s" event.handle args %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/event/" args %} {% else %}
{% make_button "+Add Event" "/event/add" args %} {% make_button "?Edit Event" "/event/%s/edit" event.handle args %} {% make_button "-Delete Event" "/event/%s/delete" event.handle args %}
{% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}