diff --git a/src/data/templates/view_event_detail.html b/src/data/templates/view_event_detail.html
index 9df1f5404..e61425af0 100644
--- a/src/data/templates/view_event_detail.html
+++ b/src/data/templates/view_event_detail.html
@@ -17,27 +17,30 @@
+ {% if eventform.errors %}
+
+ The following fields have errors. Please correct and try again.
+ {{eventform.errors}}
+
+ {% endif %}
+
@@ -64,6 +67,25 @@
-
+{% 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 %}
diff --git a/src/data/templates/view_events.html b/src/data/templates/view_events.html
index 514ee0145..16adcc16b 100644
--- a/src/data/templates/view_events.html
+++ b/src/data/templates/view_events.html
@@ -25,7 +25,7 @@
{{event.event_type|nbsp}}
| {{event.description|nbsp}}
- | {{event|render_date:user}}
+ | {{event|date_as_text:user}}
| {{event.place.title|nbsp}}
{% else %}
diff --git a/src/data/templates/view_family_detail.html b/src/data/templates/view_family_detail.html
index acbe63205..d54f836ec 100644
--- a/src/data/templates/view_family_detail.html
+++ b/src/data/templates/view_family_detail.html
@@ -19,9 +19,12 @@
{% comment %} 4 cols {% endcomment %}
- {% for error in familyform.errors %}
- Error in family: {{error}}
- {% endfor %}
+ {% if familyform.errors %}
+
+ The following fields have errors. Please correct and try again.
+ {{familyform.errors}}
+
+ {% endif %}
diff --git a/src/data/templates/view_people.html b/src/data/templates/view_people.html
index ff70ae308..c11c89ed6 100644
--- a/src/data/templates/view_people.html
+++ b/src/data/templates/view_people.html
@@ -24,8 +24,8 @@
|
[{{name.person.gramps_id}}] |
{{name.person.gender_type}} |
- {{name.person.birth|render_date:user}} |
- {{name.person.death|render_date:user}} |
+ {{name.person.birth|date_as_text:user}} |
+ {{name.person.death|date_as_text:user}} |
{% endif %}
{% endfor %}
diff --git a/src/data/templates/view_person_detail.html b/src/data/templates/view_person_detail.html
index e844eb666..c3bb570e0 100644
--- a/src/data/templates/view_person_detail.html
+++ b/src/data/templates/view_person_detail.html
@@ -17,15 +17,16 @@
{% comment %} 5 cols {% endcomment %}
- {% for error in personform.errors %}
- Error in person: {{error}}
- {% endfor %}
- {% for error in nameform.errors %}
- Error in name: {{error}}
- {% endfor %}
- {% for error in surnameform.errors %}
- Error in surname: {{error}}
- {% endfor %}
+ {% if personform.errors or nameform.errors or surnameform.errors %}
+
+ The following fields have errors. Please correct and try again.
+
+ {{personform.errors}}
+ {{nameform.errors}}
+ {{surnameform.errors}}
+
+
+ {% endif %}