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

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

{{noteform.errors}}

{% endif %} {% csrf_token %}
{{noteform.notetext.label}}: {% if action == "edit" or action == "add" %} {% render noteform.notetext user action %} {% else %}
{{notetext|safe}}
{% endif %}
{{noteform.preformatted.label}}: {% render noteform.preformatted user action %}
{{noteform.gramps_id.label}}: {% render noteform.gramps_id user action %} {{noteform.note_type.label}}: {% render noteform.note_type user action %}
{{noteform.tags.label}}: {% render noteform.tags user action %}
{% note_reference_table note user action %}
{% history_table note user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/note/%s" note.handle args %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/note/" args %} {% else %} {% make_button "Add Note" "/note/add" args %} {% make_button "Edit Note" "/note/%s/edit" note.handle args %} {% make_button "Delete Note" "/note/%s/delete" note.handle args %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}