Added primitive doc type checking

This commit is contained in:
Tris Forster
2023-03-01 13:56:52 +11:00
parent 6e1b26440f
commit b11cfcd6ea
4 changed files with 21 additions and 7 deletions
@@ -9,8 +9,10 @@
</td>
<td class="has-text-right" style="white-space: nowrap;">
{% if request.is_admin %}
{% if doc.doctype == 1 %}
<a href="{% url 'document_annotate' collection.pk doc.pk %}"><i class="fas fa-tags"
title="Manage Tags"></i></a>
{% endif %}
<a href="{% url 'document_delete' collection.pk doc.pk %}"><i class="fas fa-trash-alt" title="Delete Document"></i></a>
{% endif %}
</td>