diff --git a/src/data/templates/view_name_detail.html b/src/data/templates/view_name_detail.html index 5864d39dc..96da284be 100644 --- a/src/data/templates/view_name_detail.html +++ b/src/data/templates/view_name_detail.html @@ -117,6 +117,10 @@ value="Back to Person" onclick="document.location.href='/person/{{person.handle}}'"/> {% if user.is_authenticated %} + {% ifequal action "add" %} + + + {% else %} {% ifequal action "edit" %} @@ -131,6 +135,7 @@ value="Delete Name" onclick="document.location.href='/person/{{person.handle}}/name/{{order}}/delete'"/> {% endifequal %} + {% endifequal %} {% else %} {% endif %} diff --git a/src/data/templates/view_person_detail.html b/src/data/templates/view_person_detail.html index 58489b4b3..e844eb666 100644 --- a/src/data/templates/view_person_detail.html +++ b/src/data/templates/view_person_detail.html @@ -136,7 +136,7 @@ {% ifequal action "add" %} {% make_button "Cancel" "/person/" %} - + {% else %} {% make_button "Back to People" "/person" %} {% make_button "Add Person" "/person/add" %} diff --git a/src/data/templates/view_surname_detail.html b/src/data/templates/view_surname_detail.html index e8719eeea..fe91a9712 100644 --- a/src/data/templates/view_surname_detail.html +++ b/src/data/templates/view_surname_detail.html @@ -21,14 +21,9 @@