1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #6149: Support image attachments for locations

This commit is contained in:
jeremystretch
2021-04-13 11:39:04 -04:00
parent e5602abee0
commit b1d20d3228
4 changed files with 19 additions and 0 deletions

View File

@@ -58,6 +58,20 @@
</div>
<div class="col-md-6">
{% include 'inc/custom_fields_panel.html' %}
<div class="panel panel-default">
<div class="panel-heading">
<strong>Images</strong>
</div>
{% include 'inc/image_attachments.html' with images=object.images.all %}
{% if perms.extras.add_imageattachment %}
<div class="panel-footer text-right noprint">
<a href="{% url 'dcim:location_add_image' object_id=object.pk %}" class="btn btn-primary btn-xs">
<span class="mdi mdi-plus-thick" aria-hidden="true"></span>
Attach an image
</a>
</div>
{% endif %}
</div>
{% plugin_right_page object %}
</div>
</div>