{% 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.references.all.to_list}}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Back to Note" "/note/%s" note.handle %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/note/" %} {% else %} {% make_button "Back to Notes" "/note" %} {% make_button "Add Note" "/note/add" %} {% make_button "Edit Note" "/note/%s/edit" note.handle %} {% make_button "Delete Note" "/note/%s/delete" note.handle %} {% endifequal %} {% endif %} {% else %} {% endif %} {% endblock %}