Include "add attachment" button

This commit is contained in:
Jeremy Stretch 2025-07-29 14:01:07 -04:00
parent d55eff58b9
commit a1ffb31431

View File

@ -1,7 +1,16 @@
{% extends base_template %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% load thumbnail %}
{% block extra_controls %}
{% if perms.extras.add_imageattachment %}
<a href="{% url 'extras:imageattachment_add' %}?object_type={{ object|content_type_id }}&object_id={{ object.pk }}" class="btn btn-primary">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span> {% trans "Attach an Image" %}
</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="d-flex flex-wrap">
{% for object in image_attachments %}