{% 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 %} {% endfilter %}

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

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

{{error}}
{% endfor %}
{% csrf_token %}

{{surnameform.name_origin_type.label}}: {% render surnameform.name_origin_type user action %} {{nameform.name_type.label}}: {% render nameform.name_type user action %}
{{surnameform.surname.label}}: {% render surnameform.surname user action "get_focus" %} {{surnameform.prefix.label}}: {% render surnameform.prefix user action %}
{{nameform.first_name.label}}: {% render nameform.first_name user action %} {{nameform.nick.label}}: {% render nameform.nick user action %}
{{nameform.title.label}}: {% render nameform.title user action %} {{nameform.suffix.label}}: {% render nameform.suffix user action %}
{{nameform.call.label}}: {% render nameform.call user action %}
{{nameform.preferred.label}}: {% render nameform.preferred user action %} {{nameform.private.label}}: {% render nameform.private user action %}
{{nameform.group_as.label}}: {% render nameform.group_as user action %}
{{nameform.sort_as.label}}: {% render nameform.sort_as user action %}
{{nameform.display_as.label}}: {% render nameform.display_as user action %}
{{nameform.text.label}}: {% render nameform.text user action %}
 
{% surname_table person user action "/person/%s/name/%s/surname/add" person.handle nameform.model.order %}
{% name_table person user action "/person/%s/name" person.handle %}
{% citation_table nameform.model user action "/citation/add/person/%s/name/%s" person.handle nameform.model.order %}
{% note_table nameform.model user action "/note/$act/person/%s/name/%s" person.handle nameform.model.order %}
{% if user.is_superuser %} {% ifequal action "add" %} {% make_button "Cancel" "/person/%s" person.handle args "#tab-names" %} {% else %} {% ifequal action "edit" %} {% make_button "Cancel" "/person/" args "#tab-names" %} {% else %}
{% make_button "+Add Name" "/person/%s/name/add" person.handle args %} {% make_button "?Edit Name" "/person/%s/name/%s/edit" person.handle order args %} {% make_button "-Delete Name" "/person/%s/name/%s/delete" person.handle order args %}
{% endifequal %} {% endifequal %} {% else %} {% endif %} {% endblock %}