{% 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: {% render eventform.place 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 %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/event/%s" event.handle %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/event/" %} {% else %} {% 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 %}