mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Include "add attachment" button
This commit is contained in:
parent
d55eff58b9
commit
a1ffb31431
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user