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

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

{{mediaform.errors}}

{% endif %} {% csrf_token %}
{{mediaform.desc.label}}: {% render mediaform.desc user action %}
{{mediaform.gramps_id.label}}: {% render mediaform.gramps_id user action %} {{mediaform.private.label}}: {% render mediaform.private user action %}
{{mediaform.text.label}}: {% render mediaform.text user action %}
{{mediaform.path.label}}: {% render mediaform.path user action %}
{{mediaform.tags.label}}: {% render mediaform.tags user action %}
{% citation_table media user action "/citation/$act/media/%s" media.handle %}
{% note_table media user action "/note/$act/media/%s" media.handle %}
{% attribute_table media user action "/attribute/add/media/%s" media.handle %}
{% media_reference_table media user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/media/%s" media.handle args %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/media/" args %} {% else %} {% make_button "Add Media" "/media/add" args %} {% make_button "Edit Media" "/media/%s/edit" media.handle args %} {% make_button "Delete Media" "/media/%s/delete" media.handle args %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}