{% extends "view_page_detail.html" %} {% load my_tags %} {% block content %}
{% include "detail_breadcrumb.html" %}
{% if repositoryform.errors %}

The following fields have errors. Please correct and try again.

{{repositoryform.errors}}

{% endif %}
{% csrf_token %}
{{repositoryform.name.label}}: {% render repositoryform.name user action %}
{{repositoryform.repository_type.label}}: {% render repositoryform.repository_type user action %}
{{repositoryform.gramps_id.label}}: {% render repositoryform.gramps_id user action %} {{repositoryform.private.label}}: {% render repositoryform.private user action %}
{% address_table repository user action "/address/add/repository/%s" repository.handle %}
{% internet_table repository user action "/internet/add/repository/%s" repository.handle %}
{% note_table repository user action "/note/$act/repository/%s" repository.handle %}
{% repository_reference_table repository user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/repository/%s" repository.handle %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/repository/" %} {% else %} {% make_button "Add Repository" "/repository/add" %} {% make_button "Edit Repository" "/repository/%s/edit" repository.handle %} {% make_button "Delete Repository" "/repository/%s/delete" repository.handle %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}