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

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

{{tagform.errors}}

{% endif %}
{% csrf_token %}
{{tagform.name.label}}: {% render tagform.name user action %}
{{tagform.color.label}}: {% render tagform.color user action %}
{{tagform.priority.label}}: {% render tagform.priority user action %}
{% if user.is_superuser %} {% if action == "edit" %} {% make_button "Cancel" "/tag/%s" tag.handle args %} {% else %} {% ifequal action "add" %} {% make_button "Cancel" "/tag/" args %} {% else %}
{% make_button "+Add Tag" "/tag/add" args %} {% make_button "?Edit Tag" "/tag/%s/edit" tag.handle args %} {% make_button "-Delete Tag" "/tag/%s/delete" tag.handle args %}
{% endifequal %} {% endif %} {% else %} {% endif %}
{% tag_reference_table tag user action %}
{% endblock %}