{% extends "view_page_detail.html" %} {% load my_tags %} {% block content %}
{% filter breadcrumb %} {% format "/browse|Browse" %} || {% format "/person|People" %} || {% format "/person/%s|Person [%s]" object.handle object.gramps_id %} || {% format "/person/%s/name/%s|Name #%s" object.handle order order %} || {% format "/person/%s/name/%s/surname/%s|Surname #%s" object.handle order sorder sorder %} {% endfilter %}

{{person|make_name:user}} [{{person.gramps_id}}]

{% comment %} 4 cols {% endcomment %} {% for error in form.errors %}

{{error}}

{% endfor %} {% csrf_token %}
{{surnameform.name_origin_type.label}}: {% render surnameform.name_origin_type user action %}
{{surnameform.primary.label}}: {% render surnameform.primary user action %}
{{surnameform.prefix.label}}: {% render surnameform.prefix user action %}
{{surnameform.surname.label}}: {% render surnameform.surname user action %}
{{surnameform.connector.label}}: {% render surnameform.connector user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/person/%s/name/%s/surname/%s" person.handle order sorder args %} {% else %} {% if action == "add" %} {% make_button "Cancel" "/person/%s/name/%s" person.handle order args %} {% else %}
{% make_button "+Add Surname" "/person/%s/name/%s/surname/add" person.handle order args %} {% make_button "?Edit Surname" "/person/%s/name/%s/surname/%s/edit" person.handle order sorder args %} {% make_button "-Delete Surname" "/person/%s/name/%s/surname/%s/delete" person.handle order sorder args %}
{% endif %} {% endif %} {% endif %} {% endblock %}